add nl to grep
This commit is contained in:
parent
bc694852a9
commit
a9b4cd02ed
@ -55,7 +55,7 @@ else
|
||||
if [[ $selection == 0 ]]; then
|
||||
echo "Exiting.."
|
||||
exit
|
||||
elif ! echo -e "${containers[*]}" | grep -qs ^"$selection)" ; then
|
||||
elif ! echo -e "${containers[*]}" | nl -s ") " | grep -qs ^"$selection)" ; then
|
||||
echo "Error: \"$selection\" was not an option.. Try again"
|
||||
sleep 3
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user