thelonelycoder
Part of the Furniture
I'm trying to create an automated setup script. As a guide I'm going off of the entware-setup.sh script located in /usr/sbin/.
It all works very well so far but there's one thing that makes no sense to me.
If I name the file myscript-setup.sh it will throw all sorts of errors when I run it and will abort the setup.
Some errors look like this:
Here's the curious thing: When renaming the file to entware-setup.sh the script runs just fine.
Do I need to reference some includes to make it run with a different name than entware-setup.sh ?
It all works very well so far but there's one thing that makes no sense to me.
If I name the file myscript-setup.sh it will throw all sorts of errors when I run it and will abort the setup.
Some errors look like this:
Code:
: not foundetup.sh: line 2:
: not foundetup.sh: line 9:
myscript-setup.sh: cd: line 11: can't cd to /tmp
Do I need to reference some includes to make it run with a different name than entware-setup.sh ?