Skip to content

Commit

Permalink
zzzz_combine_values: intercept command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot authored Feb 17, 2024
1 parent d05bd1f commit 1073d0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/Better Chromium/install
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ cat << "EOF" | sudo tee "${folder}/zzzz_combine_values" >/dev/null
#This script combines multiple invocations of --enable-features and --disable-features into one argument so that Chromium does not ignore any.
#Written by Botspot for the Pi-Apps Better Chromium script.
#Intercept chromium args and move them to CHROMIUM_FLAGS
while [ $# -gt 0 ]; do
case "$1" in
#Avoid passing chromium-browser script args to chromium-browser binary
-h | --help | -help | --verbose | -g | --debug | --no-touch-pinch | --temp-profile | -- ) # Stop option prcessing
break ;;
* )
CHROMIUM_FLAGS="$CHROMIUM_FLAGS $1"
shift ;;
esac
done
IFS=' '
enable=''
disable=''
Expand Down

0 comments on commit 1073d0a

Please sign in to comment.