🐛 Modified output of -r with sed
This commit is contained in:
parent
adead7d8b5
commit
b0938f66a3
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +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}" | sed -n 2p)
|
||||||
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