Open tomparkin opened 4 years ago
By default Ubuntu runs dash as /bin/sh, which fails to evaluate:
[ "$(<"$status")" = 'connected' ] && i=$((i+1))
https://www.shellcheck.net/ says:
SC2039: In POSIX sh, $(<file) to read files is undefined.
It seems the idiom is a bashism.
To fix on my Ubuntu system I changed the mons script shabang to /bin/bash rather than /bin/sh,
By default Ubuntu runs dash as /bin/sh, which fails to evaluate:
[ "$(<"$status")" = 'connected' ] && i=$((i+1))
https://www.shellcheck.net/ says:
It seems the idiom is a bashism.
To fix on my Ubuntu system I changed the mons script shabang to /bin/bash rather than /bin/sh,