| On a first sight, that script is syntactically correct, so it should work. Look out for bad line breaks if you wrote this on the windows notepad or something like that (tip: dos2unix).
Also, for the sake of consistency, if you use $() on the DATE line, you should use the same on the BASE line instead of `...`. Uniformity helps readability of the script quite a bit, and $() is always preferable on a script because it's meaning is inmediatly obvious, while the clarity of backticks ` often depends on teh font you are using :P
Other than the styliscit note I don't see any problem with that script. |