Error when bulding: "(" unexpected"
When running build.-icons,sh I get this error:
./build-icons.sh: 14: Syntax error: "(" unexpected
I am running Debian 12.
Hmm, just tried to reproduce on a stock Debian 12 container and ran the script - I got some other errors (possibly due to blank lines in the list-files) but it seemed to compile OK. Didn't see any syntax errors.
I then modified the shebang from #!/bin/bash to #!/bin/sh and the script then failed with the same error message you reported above.
So I think one of two things could be happening in your case:
- You could be on an older commit of the repo, before issue #1 was resolved.
- You have replaced /bin/bash on your system with something that is not entirely bash-compatible
Would you mind reporting back with the output of the following commands?
git show | head - -n 1
ps -p $$
dpkg -S /bin/bash
I wasn't clear, I did use the latest version of the script, obtained with a git clone
Here's the output you requested
git show | head - -n 1
commit 6bcd68b781abd682f75dda4f68ef5fd6b71f3f8a
ps -p $$
PID TTY TIME CMD
1026320 pts/3 00:00:00 bash
dpkg -S /bin/bash
bash: /bin/bash