From adead7d8b58b78c084a1efa125fca15a014059bb Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 20 Dec 2022 20:24:42 -0800 Subject: [PATCH] :bug: Uncommented correct -r parsing --- scripts/dye | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/dye b/scripts/dye index 8bfbe5ec..83fbc0a1 100755 --- a/scripts/dye +++ b/scripts/dye @@ -107,8 +107,7 @@ main() { error "-r parses no less than three arguments" exit 2 fi - # hexval=$(rgb_to_hex "${@:2}") - hexval=$(rgb_to_hex "${2:-''}") + hexval=$(rgb_to_hex "${@:2}") printf "%s\n" "$hexval" read -e -r -p "save code to clipboard?(y/n): " clipit if [[ "$clipit" == "yes" || "$clipit" == "y" ]]; then