|
@@ -1,7 +1,7 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
|
|
|
## Updater für die user.js von Privacy-Handbuch.de
|
|
## Updater für die user.js von Privacy-Handbuch.de
|
|
-## Version: 1.6.1
|
|
|
|
|
|
+## Version: 1.6.2
|
|
## by: TotallyLeGIT
|
|
## by: TotallyLeGIT
|
|
|
|
|
|
## based on the ghacks user.js updater by:
|
|
## based on the ghacks user.js updater by:
|
|
@@ -78,7 +78,7 @@ printv_info() {
|
|
shift
|
|
shift
|
|
printv "${importance}" '%-19s' "${1}:"
|
|
printv "${importance}" '%-19s' "${1}:"
|
|
shift
|
|
shift
|
|
- printv "${importance}" '%s\n' "${color_info}${@}${no_color_stdout}"
|
|
|
|
|
|
+ printv "${importance}" '%s\n' "${color_info}${*}${no_color_stdout}"
|
|
}
|
|
}
|
|
|
|
|
|
# See 'extract_version', but without Thunderbird.
|
|
# See 'extract_version', but without Thunderbird.
|
|
@@ -301,7 +301,7 @@ set_variables() {
|
|
readonly backup_dir='userjs_backups'
|
|
readonly backup_dir='userjs_backups'
|
|
readonly diff_dir='userjs_diffs'
|
|
readonly diff_dir='userjs_diffs'
|
|
# TODO: remove version comment in line 4 in v2.0
|
|
# TODO: remove version comment in line 4 in v2.0
|
|
- readonly version='1.6.1'
|
|
|
|
|
|
+ readonly version='1.6.2'
|
|
}
|
|
}
|
|
|
|
|
|
usage() {
|
|
usage() {
|
|
@@ -374,7 +374,7 @@ download_file() {
|
|
# This string makes parsing easy as it looks similar to a normal user.js.
|
|
# This string makes parsing easy as it looks similar to a normal user.js.
|
|
printf '// user_pref("_user.js.prhdb", "empty");\n' > "${1}" || return 1
|
|
printf '// user_pref("_user.js.prhdb", "empty");\n' > "${1}" || return 1
|
|
else
|
|
else
|
|
- eval "${download_command} '${1}' '${2}'" || return 1
|
|
|
|
|
|
+ ${download_command} "${1}" "${2}" || return 1
|
|
fi
|
|
fi
|
|
}
|
|
}
|
|
|
|
|