Skip to content

Commit 6968b9a

Browse files
authored
v3.2 - proper fix for the diff issue
- re-arrange the match patterns to fix the remaining issue of dropping lines after the 9999 block - make it work on Mac too - use `|` where possible so we don't need to escape the forward-slashes. That saves a few bytes and makes the pattern easier to read
1 parent ada31d4 commit 6968b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updater.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## arkenfox user.js updater for macOS and Linux
44

5-
## version: 3.1
5+
## version: 3.2
66
## Author: Pat Johnson (@overdodactyl)
77
## Additional contributors: @earthlng, @ema-pe, @claustromaniac
88

@@ -236,7 +236,7 @@ add_override () {
236236
}
237237

238238
remove_comments () { # expects 2 arguments: from-file and to-file
239-
sed -e 's/^[[:space:]]*\/\/.*$//' -e '/^\/\*.\+\*\/[[:space:]]*$/d' -e '/^\/\*/,/\*\//d' -e '/^[[:space:]]*$/d' -e 's/);[[:space:]]*\/\/.*/);/' "$1" > "$2"
239+
sed -e '/^\/\*.*\*\/[[:space:]]*$/d' -e '/^\/\*/,/\*\//d' -e 's|^[[:space:]]*//.*$||' -e '/^[[:space:]]*$/d' -e 's|);[[:space:]]*//.*|);|' "$1" > "$2"
240240
}
241241

242242
# Applies latest version of user.js and any custom overrides

0 commit comments

Comments
 (0)