Check Bashisms: Reformat file with `shfmt`
@@ -4,7 +4,10 @@ echo
echo ELEKTRA SCRIPTS BASHISMS TEST
echo
-command -v checkbashisms >/dev/null 2>&1 || { echo "checkbashisms command needed for this test, aborting" >&2; exit 0; }
+command -v checkbashisms > /dev/null 2>&1 || {
+ echo "checkbashisms command needed for this test, aborting" >&2
+ exit 0
+}
cd "@CMAKE_SOURCE_DIR@"
@@ -15,7 +18,7 @@ find -version > /dev/null 2>&1 > /dev/null && FIND='find scripts -regextype egre
# The script `check-env-dep` uses process substitution which is **not** a standard `sh` feature!
# See also: https://unix.stackexchange.com/questions/151925
scripts=$($FIND -type f -not -regex \
- '.+(check-env-dep|gitignore|kdb_zsh_completion|run_dev_env|sed|(Docker|Jenkins|Vagrant)file.*|\.(cmake|fish|in|md|txt|hs))$' | \
+ '.+(check-env-dep|gitignore|kdb_zsh_completion|run_dev_env|sed|(Docker|Jenkins|Vagrant)file.*|\.(cmake|fish|in|md|txt|hs))$' |
xargs)
exit_if_fail 'Unable to locate shell scripts via `find`'
checkbashisms $scripts
