Running ./bssg.sh post returns error #20

Closed
opened 2025-05-14 22:19:36 +02:00 by svs777 · 2 comments

I'm on macOS 15.4.1. Running in iTerm or Terminal, error is the same on both. Bash installed via Brew.
echo $BASH_VERSION returns 5.2.37(1)-release

Clone works ok.
Directory init works ok.
./bssg.sh post returns:

[SUCCESS] Default configuration loaded from config.sh
[SUCCESS] Local configuration loaded from config.sh.local
[INFO] Loading locale: en from locales/en.sh
[INFO] Expanding tilde (~) in configuration paths...
Central configuration loaded via config_loader.sh
EDITOR environment variable not set. Using nano as default.
scripts/post.sh: line 293: syntax error near unexpected token `;;'
I'm on macOS 15.4.1. Running in iTerm or Terminal, error is the same on both. Bash installed via Brew. `echo $BASH_VERSION` returns `5.2.37(1)-release` Clone works ok. Directory init works ok. `./bssg.sh post` returns: ``` [SUCCESS] Default configuration loaded from config.sh [SUCCESS] Local configuration loaded from config.sh.local [INFO] Loading locale: en from locales/en.sh [INFO] Expanding tilde (~) in configuration paths... Central configuration loaded via config_loader.sh EDITOR environment variable not set. Using nano as default. scripts/post.sh: line 293: syntax error near unexpected token `;;' ```
Owner

Hi, that's strange, as I'm testing BSSG on MacOS and it's working properly. My suspect is that it's still using the embedded, ancient MacOS bash version.

Could you please add this line:

echo "DEBUG: scripts/post.sh is running with BASH_VERSION: $BASH_VERSION" >/tmp/bashversion

Just under the #!/usr/bin/env bash line of the scripts/post.sh and, after running it, tell me the contents of the /tmp/bashversion file?

Hi, that's strange, as I'm testing BSSG on MacOS and it's working properly. My suspect is that it's still using the embedded, ancient MacOS bash version. Could you please add this line: echo "DEBUG: scripts/post.sh is running with BASH_VERSION: $BASH_VERSION" >/tmp/bashversion Just under the #!/usr/bin/env bash line of the scripts/post.sh and, after running it, tell me the contents of the /tmp/bashversion file?
Author

Ok, it returned the old 3.2 version. I've gone through and reinstall Homebrew and reinstalled bash and reset the shell to bash and now it all works. Apologies for the hassle. Something wasn't wanting to accept the updated bash shell. It all works now!

Ok, it returned the old 3.2 version. I've gone through and reinstall Homebrew and reinstalled bash and reset the shell to bash and now it all works. Apologies for the hassle. Something wasn't wanting to accept the updated bash shell. **It all works now!**
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#20
No description provided.