🐛 Uncommented correct -r parsing
This commit is contained in:
parent
fc9aef2982
commit
adead7d8b5
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ main() {
|
||||||
error "-r parses no less than three arguments"
|
error "-r parses no less than three arguments"
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
# hexval=$(rgb_to_hex "${@:2}")
|
hexval=$(rgb_to_hex "${@:2}")
|
||||||
hexval=$(rgb_to_hex "${2:-''}")
|
|
||||||
printf "%s\n" "$hexval"
|
printf "%s\n" "$hexval"
|
||||||
read -e -r -p "save code to clipboard?(y/n): " clipit
|
read -e -r -p "save code to clipboard?(y/n): " clipit
|
||||||
if [[ "$clipit" == "yes" || "$clipit" == "y" ]]; then
|
if [[ "$clipit" == "yes" || "$clipit" == "y" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue