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