I have a script that I want to use to start Android Studio easily. Here is the content of the script:
#!/bin/sh
echo "Script is working"
/home/user/Desktop/android-studio/bin/studio.sh
I have made it executable using chmod +x, and it runs (I know because it prints the string).
However, it always tells me that the third line contains 'No such file or directory'. When I copy and paste the third line into terminal it works fine, and Optic Studio starts. What am I doing wrong?
I have looked at other answers such as:
Run bash script with sh and How to run sh file from another sh file
but they haven't helped.
Thanks.