File tree 3 files changed +14
-5
lines changed 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
# {"files":[]}
9
9
10
- body=" $1 "
11
- api_token=
12
- zone_id=
10
+ # body="$1"
11
+ # api_token=
12
+ # zone_id=
13
13
14
14
# curl -XPOST \
15
15
# -H "Content-Type: application/json" \
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ mix format --check-formatted
11
11
12
12
# Sleep to allow OpenSearch to finish initializing
13
13
# if it's not done doing whatever it does yet
14
- echo -n " Waiting for OpenSearch"
14
+ printf " Waiting for OpenSearch"
15
15
16
16
until wget -qO - opensearch:9200; do
17
- echo -n " ."
17
+ printf " ."
18
18
sleep 2
19
19
done
20
20
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ #
3
+ # This script runs shellcheck on all shell scripts in the repository.
4
+ # It exists because shellcheck doesn't attempt to automatically discover
5
+ # shell scripts and requires specifying the files paths explicitly.
6
+ #
7
+ # This is somewhat understandable, because not all shell scripts use
8
+ # obvious file extensions like `.sh`. So, we discover such files by
9
+ # checking if they have one of the expected shebang lines at the beginning.
2
10
3
11
set -euo pipefail
4
12
@@ -7,6 +15,7 @@ set -euo pipefail
7
15
function shell_script_files {
8
16
git ls-files " *.sh"
9
17
git grep --files-with-matches ' ^#!/usr/bin/env bash'
18
+ git grep --files-with-matches ' ^#!/usr/bin/env sh'
10
19
}
11
20
12
21
mapfile -t files < <( shell_script_files " $@ " | sort --unique)
You can’t perform that action at this time.
0 commit comments