Skip to content

Commit ada31d4

Browse files
authored
v3.1 - (mostly) fix diff functionality
see #1188 this should fix the issue that "All prefs after a multi-line comment declaration, on a single line, are deleted with the remove_comments function from the updater."
1 parent d973e11 commit ada31d4

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.0
5+
## version: 3.1
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 '/^\/\*/,/\*\//d' -e '/^[[:space:]]*$/d' -e 's/);[[:space:]]*\/\/.*/);/' "$1" > "$2"
239+
sed -e 's/^[[:space:]]*\/\/.*$//' -e '/^\/\*.\+\*\/[[:space:]]*$/d' -e '/^\/\*/,/\*\//d' -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)