From b0938f66a3e32606c9d73868c92a788ca4bf49bd Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 20 Dec 2022 20:36:45 -0800 Subject: [PATCH] :bug: Modified output of -r with sed --- scripts/dye | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dye b/scripts/dye index 83fbc0a1..5c887f9a 100755 --- a/scripts/dye +++ b/scripts/dye @@ -107,7 +107,7 @@ main() { error "-r parses no less than three arguments" exit 2 fi - hexval=$(rgb_to_hex "${@:2}") + hexval=$(rgb_to_hex "${@:2}" | sed -n 2p) printf "%s\n" "$hexval" read -e -r -p "save code to clipboard?(y/n): " clipit if [[ "$clipit" == "yes" || "$clipit" == "y" ]]; then