shellcheck script

pull/3/head
kevin zhuang 4 years ago
parent c906ee4c0e
commit 05472cf5eb

@ -49,6 +49,7 @@ if [[ $# -eq 0 ]]; then
exit 0
fi
# shellcheck disable=SC2199
[[ "$@" == 'add --all' ]] && \
echo 'If you intend to stage all modified file, run dotbare add -u' && \
echo "dotbare disabled add --all option as this will stage every single file in ${DOTBARE_TREE}" && \

@ -0,0 +1,22 @@
#!/bin/bash
#
# run shellcheck against all scripts
set -e
scripts=()
while IFS= read -r -d $'\0' line; do
scripts+=("$line")
done < <(
find \
dotbare \
helper/* \
scripts/* \
shellcheck.sh \
-type f \
-print0
)
shellcheck -e SC1090 "${scripts[@]}"
exit $?
Loading…
Cancel
Save