Closed cmatte closed 1 month ago
bash
or sh
? It should be bash
. "syntax error near unexpected
" can typically be indicative of saving the script with incorrectly sequenced text:
Bash shell scripts running on Linux must be saved as LF (Line Feed) sequenced text. Alternatively, Windows typically uses CRLF (Carriage Return Line Feed). If you inadvertently save your script with CRLF instead of LF sequencing, it will error with verbiage such as:
- '\r': command not found
- syntax error near unexpected
To resolve this issue you will need to [re]save your copy of the script with LF sequencing, or download a new copy directly from GitHub.
Hi again! Was what I replied a resolution for you?
Closing due to non-reply.
Thanks for your prompt help, indeed utilizing bash (vs. sh) fixed it! Appreciate your patience on the delayed reply 👍
No worries. Glad to hear it was just a matter of the shell used.
Hi there,
Thanks for maintaining this script! For quite a while now I've been keeping it running, however I noticed just today v.4.4.0 was not auto-updating as expected, well, even if working without any issue! I pushed through 4.6.9 and unfortunately I encounter the following error I'm a bit unable to troubleshoot. Machine is a DS918+ (INTEL Celeron J3455 x86/64) with DSM 7.2.2-72803.
Any suggestion welcome!
Thanks in advance. KR, Matteo.