Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/check-lock-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,20 @@ for cand in gawk awk; do
AWK="$cand"; break
fi
done
if [ -z "$AWK" ]; then
if [[ -z "$AWK" ]]; then
echo "check-lock-sync: FATAL: no awk supporting 3-argument match() (need gawk)" >&2
echo "check-lock-sync: install it with: sudo apt-get install -y gawk" >&2
exit 1
fi

if [ ! -f "$LOCK" ]; then
if [[ ! -f "$LOCK" ]]; then
echo "check-lock-sync: FATAL: no lockfile at $LOCK" >&2
exit 1
fi

shopt -s nullglob
mapfile -t WORKFLOWS < <(printf '%s\n' "$WF_DIR"/*.yml "$WF_DIR"/*.yaml | sort -u)
if [ "${#WORKFLOWS[@]}" -eq 0 ]; then
if [[ "${#WORKFLOWS[@]}" -eq 0 ]]; then
echo "check-lock-sync: FATAL: no workflow files under $WF_DIR" >&2
exit 1
fi
Expand Down
Loading