From 2f5b782678afd7a22c83f807dc5bafe59935028f Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Sun, 8 Dec 2024 19:23:33 -0800 Subject: [PATCH] =?UTF-8?q?Moved=20arg=20normalization=20up=20for=20readab?= =?UTF-8?q?ility=20=E2=86=9E=20[auto-sync=20from=20https://github.com/adam?= =?UTF-8?q?lui/ai-web-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/bump.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/bump.sh b/utils/bump.sh index c5b90bb..d206933 100644 --- a/utils/bump.sh +++ b/utils/bump.sh @@ -4,6 +4,9 @@ # NOTE: Pass --chrome or --chromium to only affect Chromium manifest # NOTE: Pass --firefox or --ff to only affect Firefox manifest +# Normalize args +arg=${1#-} ; arg=${arg#-} # strip leading dash(es) + # Init UI colors NC="\033[0m" # no color BR="\033[1;91m" # bright red @@ -15,9 +18,6 @@ BW="\033[1;97m" # bright white chromium_manifest="chromium/extension/manifest.json" ff_manifest="firefox/extension/manifest.json" -# Normalize args -arg=${1#-} ; arg=${arg#-} # strip leading dash(es) - # Determine manifests to edit case "$arg" in chrome|chromium) MANIFESTS_TO_EDIT=("$chromium_manifest") ;;