From 54ceb21a30ed637629006f02912520ba2cd9d919 Mon Sep 17 00:00:00 2001 From: germedeb Date: Wed, 13 Jul 2022 19:30:55 -0300 Subject: [PATCH] added "-a" argument to the build script and polished it --- tasks/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/build.sh b/tasks/build.sh index 5f57e57..a73bd72 100755 --- a/tasks/build.sh +++ b/tasks/build.sh @@ -33,8 +33,10 @@ fi case "$@" in *--help*|*-h*) printf "${info_color}Aleta's build script help${reset_colors}\\n\ - --help -h Show this help. + -h + --help Show this help. + -a --no-optipng --avoid-optipng Don't launch optipng process @@ -93,7 +95,7 @@ printf "${info_color}exporting all the icons... this will take a long time.${res ./tasks/export/export-actions.sh ./tasks/export/export-animations.sh -case "$@" in *--avoid-optipng*|*--no-optipng*) +case "$@" in *--avoid-optipng*|*-a*|*--no-optipng*) OPTIPNG=avoid esac