diff options
author | David Spickett <david.spickett@linaro.org> | 2020-05-07 16:35:31 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-05-11 10:02:58 +0000 |
commit | 5478eca641d0f04e4789f2e5ea77b568b198be15 (patch) | |
tree | 19ca2b3062b49b82d3567c3fe18a583af616ea04 /sanity-check.sh | |
parent | 5d16847714228729f893b9089ac11f92b88af43f (diff) |
sanity-check.sh: Scan files in the current working dir
This is prep work for running sanity checks
on bmk-scripts as well.
Change-Id: I3a0a08c97c0daf256f6839055b6b574c83460e35
Diffstat (limited to 'sanity-check.sh')
-rwxr-xr-x | sanity-check.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sanity-check.sh b/sanity-check.sh index 2dd899c5..51bc4e15 100755 --- a/sanity-check.sh +++ b/sanity-check.sh @@ -2,15 +2,15 @@ set -euf -o pipefail # Usage: -# Check all scripts in this folder: +# Check all scripts in the current working directory # ./sanity-check.sh -# Check specific files: +# Check specific files # ./sanity-check.sh script1.sh script2.sh if [[ "$#" -eq 0 ]]; then files=() while IFS='' read -r line; do files+=("$line"); done < <(\ - find "$(dirname "$0")" -name "*.sh" -o -name "*.job") + find . -name "*.sh" -o -name "*.job") else files=("${@}") fi |