Ragpuss
Regular Contributor
Hi all,
I have been getting used to using basic Linux commands (trying anyway, lol)
I’m not sure what I’m doing wrong but after making a new script for installing Entware placed at /temp/home/root
And called entinst.sh I made it executable using chmod +x entinst.sh
When I try to run it using sh tmp/home/root/entinst.sh I am getting the following error straight away
tmp/home/root/entinst.sh: line 7: syntax error: unexpected "if" (expecting "do")
And it makes a new file called fi and that’s it :/
Any ideas as to what I’m doing wrong ?
(The script text is just copied from here and pasted into nano then I just used [cmd o] chose name.sh and then just [enter] to exit and save).
Thank you in advance, I thought I was starting to understand Linux but maybe not, lol
I have been getting used to using basic Linux commands (trying anyway, lol)
I’m not sure what I’m doing wrong but after making a new script for installing Entware placed at /temp/home/root
And called entinst.sh I made it executable using chmod +x entinst.sh
When I try to run it using sh tmp/home/root/entinst.sh I am getting the following error straight away
tmp/home/root/entinst.sh: line 7: syntax error: unexpected "if" (expecting "do")
And it makes a new file called fi and that’s it :/
Any ideas as to what I’m doing wrong ?
(The script text is just copied from here and pasted into nano then I just used [cmd o] chose name.sh and then just [enter] to exit and save).
Thank you in advance, I thought I was starting to understand Linux but maybe not, lol