fix: palette detection

pull/1/head
Pocco81 3 years ago
parent a1ee8620aa
commit 19cc441847

@ -6,7 +6,7 @@ coerce=false
lowercase=false lowercase=false
file="" file=""
prefix="" prefix=""
original_palette="storm" original_palette=""
verbosity=0 verbosity=0
script_help=$( script_help=$(
@ -220,7 +220,7 @@ main() {
shift shift
;; ;;
-o | --original-palette) -o | --original-palette)
origianl_palette=$2 original_palette=$2
shift shift
;; ;;
-l | --lowercase) -l | --lowercase)
@ -248,7 +248,7 @@ main() {
if [[ $file != "" ]]; then if [[ $file != "" ]]; then
[[ -f $file ]] && { [[ -f $file ]] && {
prompt "updating colors..." prompt "updating colors..."
if [[ original_palette != "storm" || original_palette != "dusk" || original_palette != "dawn" ]]; then if [[ $original_palette != "storm" && $original_palette != "dusk" && $original_palette != "dawn" ]]; then
detect_original_palette detect_original_palette
fi fi
generate_palettes generate_palettes

Loading…
Cancel
Save