fix: remove channel-prefs.js from add-if-not list

(cherry picked from commit b47d35f0bdebcddca941a38e6c1d832a3c8f7090)
This commit is contained in:
Alex Kontos
2022-09-02 17:15:46 +01:00
parent 11ddff936d
commit d17e0cf3e1

View File

@@ -92,14 +92,11 @@ make_add_instruction() {
check_for_add_if_not_update() {
add_if_not_file_chk="$1"
if [[ "$(basename "$add_if_not_file_chk")" = "channel-prefs.js" || \
"$add_if_not_file_chk" =~ (^|/)ChannelPrefs\.framework/ || \
"$(basename "$add_if_not_file_chk")" = "update-settings.ini" || \
"$add_if_not_file_chk" =~ (^|/)UpdateSettings\.framework/ ]]; then
## "true"
if [ `basename $add_if_not_file_chk` = "update-settings.ini" ]; then
## "true" *giggle*
return 0;
fi
## "false"
## 'false'... because this is bash. Oh yay!
return 1;
}