Skip to content

Commit

Permalink
back to tmp dir version to be sh compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
André Bauer committed Jan 4, 2019
1 parent 4c941f8 commit 4a939dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .circleci/lint-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
set -o errexit

CONFIG_DIR="./.circleci"
TMP_FILE="$(mktemp)"

find "${CONFIG_DIR}" -type f -name "*.sh" > "${TMP_FILE}"

while read -r FILE; do
echo lint "${FILE}"
shellcheck -x "${FILE}"
done < <(find "${CONFIG_DIR}" -type f -name "*.sh" > "${TMP_FILE}")
done < "${TMP_FILE}"

rm "${TMP_FILE}"

0 comments on commit 4a939dd

Please sign in to comment.