Quote:
Originally Posted by jozyba
Bl**dy Ubuntu!
On Ubuntu 'sh' is symlinked to 'dash', so when you call the script by going 'sh myscript.sh' it will ignore the '#!/bin/bash' at the head of the script and use dash instead. dash cannot cope with the syntax in line 49 of your script.
The solution is either to run it with 'bash myscript.sh' or just to use 'chmod u+x myscript.sh' to make it executable, then call it with './myscript.sh'.
|
Tried both solutions - No error messages this time. So I presume the syntax is ok as such.
However no changes inside any of the HTML files - Got a .bak file for every file.
Maybe because the script copies the HTML files and doesn't perform the change in every html file ?