I have a script:
echo "start" cd ~/GoogleDrive/ drive push path-to-file/ echo "done"
which uploads path-to file to my Google Drive account. I can run this script without any problem by
sh UploadToDrive.sh but when I try to execute it by means of double clicking on the script I get the error
start /home/user/UploadToDrive.sh: 3: /home/user/UploadToDrive.sh: drive: not found done
I posted it here because it seems like Gnome is doing something wrong rather than there is something wrong with the script, as it works when I use
./ explicitly. I am using Ubuntu 15.10 with Gnome 3, if it is relevant.