Several commands in my .sh are not executing properly when I run the .sh from the launcher. But they work just fine when I type the filename.sh in a terminal.
I get errors from illegal option error from
It is also weird. It also says filename.sh not found. But it is obviously running the the other code within. I am assuming that it is a side effect of the above error.
echo program running
while true; do
echo Type q to quit
read -t .025 -n 1 input
if [[ $input = “q” ]] || [[ $input = “Q” ]]; then
#this breaks the loop.