From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- tools/update-packaging/common.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tools/update-packaging') diff --git a/tools/update-packaging/common.sh b/tools/update-packaging/common.sh index 397ed21e25..e055b1c24e 100755 --- a/tools/update-packaging/common.sh +++ b/tools/update-packaging/common.sh @@ -92,12 +92,14 @@ 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" -o \ - "$(basename "$add_if_not_file_chk")" = "update-settings.ini" ]; then - ## "true" *giggle* + 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" return 0; fi - ## 'false'... because this is bash. Oh yay! + ## "false" return 1; } -- cgit v1.2.3