I have a secondary list of start up programs that I would like to start in case I am working. So I have added this shell script to the start up of my system running on Ubuntu.
echo "Do you want to start the start up applications[Y/n]?"
while read inputline
do
what="$inputline"
break
done
if [ "$what" == "Y" -o "$what" == "y" ]
then
. ~/bin/webstorm.sh &
workrave &
firefox &
. ~/bin/AptanaStudio3
fi
I keep getting this error that says something like [: Y: unexpected operator all the time and never starts the programs.
Disclaimer: I have no idea how to write shell scripts.
Try changing:
to