Skip to content

Commit

Permalink
removed tmpdir usage from lint scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
André Bauer committed Jan 4, 2019
1 parent ef68cf6 commit 4c941f8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .circleci/lint-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ 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 < "${TMP_FILE}"

rm "${TMP_FILE}"
done < <(find "${CONFIG_DIR}" -type f -name "*.sh" > "${TMP_FILE}")

0 comments on commit 4c941f8

Please sign in to comment.