Hello everyone,
I have started to learn development. As part of this I have now wanted to create my own bash script to automate docker. (I got tired of writing the same commands at start up just to spin up the docker container)
So I started to look how to do this.
I found that I create a script and then place it in /usr/local/bin/ to make the script exectuable without having to type any other commands
I created a directory inside /usr/local/bin/bash-scripts/
inside this dir i created my bash.sh file
In the terminal if i cd to /usr/local/bin/bash-scripts/ and use sh bash.sh the script will run
As soon as I cd out to ~ and then run sh bash.sh I am told the file doesn’t exist and sure enough
when I cd back the file location it has been removed
am I doing something wrong or is this a bug?
Many thanks