🐛 Uncommented correct -r parsing

This commit is contained in:
z3rOR0ne 2022-12-20 20:24:42 -08:00
parent fc9aef2982
commit adead7d8b5

View file

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