From 6326a115866307a46418a29d2ebe8b10a36a4ff4 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Tue, 15 Feb 2022 23:48:57 +0800 Subject: [PATCH] Fixed #6 --- install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 97017a2f..fb4f349f 100755 --- a/install.sh +++ b/install.sh @@ -25,7 +25,7 @@ cat << EOF -d, --dest DIR Specify destination directory (Default: $DEST_DIR) -n, --name NAME Specify theme name (Default: $THEME_NAME) -s, --scheme TYPES Specify folder color scheme variant(s) [default|nord] - -t, --theme VARIANTS Specify folder color theme variant(s) [default|purple|pink|red|orange|yellow|green|grey|all] (Default: blue) + -t, --theme VARIANTS Specify folder color theme variant(s) [default|purple|pink|red|orange|yellow|green|teal|grey|all] (Default: blue) -h, --help Show help EOF } @@ -141,8 +141,8 @@ while [[ "$#" -gt 0 ]]; do break ;; *) - prompt -e "ERROR: Unrecognized color schemes variant '$1'." - prompt -i "Try '$0 --help' for more information." + echo "ERROR: Unrecognized color schemes variant '$1'." + echo "Try '$0 --help' for more information." exit 1 ;; esac @@ -180,10 +180,14 @@ while [[ "$#" -gt 0 ]]; do themes+=("${THEME_VARIANTS[6]}") shift ;; - grey) + teal) themes+=("${THEME_VARIANTS[7]}") shift ;; + grey) + themes+=("${THEME_VARIANTS[8]}") + shift + ;; all) themes+=("${THEME_VARIANTS[@]}") shift @@ -192,8 +196,8 @@ while [[ "$#" -gt 0 ]]; do break ;; *) - prompt -e "ERROR: Unrecognized theme color variant '$1'." - prompt -i "Try '$0 --help' for more information." + echo "ERROR: Unrecognized theme color variant '$1'." + echo "Try '$0 --help' for more information." exit 1 ;; esac