🐛 Modified output of -r with sed

This commit is contained in:
z3rOR0ne 2022-12-20 20:36:45 -08:00
parent adead7d8b5
commit b0938f66a3

View file

@ -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