clang-format.sh only works with shells supporting `[[ ]]` conditionals
Closed this issue · 2 comments
evaleev commented
This syntax, `[[` and `]]`, is a bash-extension and thus the script does not work on Debian/Ubuntu, where `/bin/sh` is symlinked to `dash`.
A solution is to change the shebang to #!/bin/bash
, or use [
and ]
.
Originally posted by @e-kwsm in #284 (comment)