Skip to content

Commit 928ce40

Browse files
committed
🧹 Restore shellcheck (0.7.2)
1 parent d7dfe37 commit 928ce40

7 files changed

Lines changed: 43 additions & 14 deletions

File tree

Brewfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
brew "markdownlint-cli"
2+
brew "shellcheck"
23
brew "shfmt"
34
brew "swiftformat"
45

Brewfile.lock.json

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,35 @@
3030
}
3131
}
3232
},
33+
"shellcheck": {
34+
"version": "0.7.2",
35+
"bottle": {
36+
"rebuild": 0,
37+
"root_url": "https://ghcr.io/v2/homebrew/core",
38+
"files": {
39+
"arm64_big_sur": {
40+
"cellar": ":any_skip_relocation",
41+
"url": "https://ghcr.io/v2/homebrew/core/shellcheck/blobs/sha256:8844cd2a84bd07f8697463d9af3cc41cc4356edfa11d1171255884dc732ee9cd",
42+
"sha256": "8844cd2a84bd07f8697463d9af3cc41cc4356edfa11d1171255884dc732ee9cd"
43+
},
44+
"big_sur": {
45+
"cellar": ":any_skip_relocation",
46+
"url": "https://ghcr.io/v2/homebrew/core/shellcheck/blobs/sha256:516df7bcc8d5b1e7e4b989b472e89d9e3cf5e4dfc977aa45f06c0335c697b77a",
47+
"sha256": "516df7bcc8d5b1e7e4b989b472e89d9e3cf5e4dfc977aa45f06c0335c697b77a"
48+
},
49+
"catalina": {
50+
"cellar": ":any_skip_relocation",
51+
"url": "https://ghcr.io/v2/homebrew/core/shellcheck/blobs/sha256:d4ffbfe9cb1fc1c888c7b6805a6c224810e4137c0bac0aac3041733bb36b7d79",
52+
"sha256": "d4ffbfe9cb1fc1c888c7b6805a6c224810e4137c0bac0aac3041733bb36b7d79"
53+
},
54+
"mojave": {
55+
"cellar": ":any_skip_relocation",
56+
"url": "https://ghcr.io/v2/homebrew/core/shellcheck/blobs/sha256:a810166fde56298431a942ec439d5359e871a0727b989788040608876b519b07",
57+
"sha256": "a810166fde56298431a942ec439d5359e871a0727b989788040608876b519b07"
58+
}
59+
}
60+
}
61+
},
3362
"shfmt": {
3463
"version": "3.3.0",
3564
"bottle": {
@@ -98,12 +127,12 @@
98127
"revision": "00757e80d6861651d3dc18bbc978edf9a5d0a8a9"
99128
},
100129
"peripheryapp/periphery": {
101-
"revision": "9a2339d2bcd07846d2ca580e88082f97b8a66095"
130+
"revision": "22ad61496f90c8b6e8b2af34f371eab6c1cb1f1a"
102131
}
103132
},
104133
"cask": {
105134
"periphery": {
106-
"version": "2.5.2",
135+
"version": "2.6.0",
107136
"options": {
108137
"full_name": "periphery"
109138
}
@@ -113,9 +142,9 @@
113142
"system": {
114143
"macos": {
115144
"big_sur": {
116-
"HOMEBREW_VERSION": "3.1.9-121-g654c78c",
145+
"HOMEBREW_VERSION": "3.1.11-14-g76cda75",
117146
"HOMEBREW_PREFIX": "/opt/homebrew",
118-
"Homebrew/homebrew-core": "b68a20a099cc511ee6df038b3ef46bd4793b3cf7",
147+
"Homebrew/homebrew-core": "112feba9af1ddb9870c7584f8b1d04d4b62827d8",
119148
"CLT": "12.5.0.22.9",
120149
"Xcode": "12.5",
121150
"macOS": "11.4"

script/bootstrap

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ main() {
1818
rm -f Brewfile.lock.json
1919
brew bundle install --no-upgrade --verbose
2020

21-
if [[ "CI" != "true" ]]; then
22-
# Already installed on GitHub Actions runner.
23-
if ! command -v swiftlint >/dev/null; then
24-
brew install swiftlint
25-
fi
21+
# Already installed on GitHub Actions runner.
22+
if [[ ! -x "$(command -v swiftlint)" ]]; then
23+
brew install swiftlint
2624
fi
2725

2826
# Generate Package.swift

script/bottle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ echo "==> 🍼 Bottling mas ${VERSION} for: ${OS_NAMES[*]}"
7474
brew install --build-bottle mas
7575

7676
# Generate bottle do block, dropping last 2 lines
77-
brew bottle --verbose --no-rebuild --root-url=$ROOT_URL mas
77+
brew bottle --verbose --no-rebuild --root-url="$ROOT_URL" mas
7878
SHA256=$(shasum --algorithm 256 "${OLD_FILENAME}" | cut -f 1 -d ' ' -)
7979

8080
mkdir -p "$BOTTLE_DIR"

script/build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ fi
2121
echo "==> 🏗️ Building mas ($(script/version))"
2222
swift build \
2323
--configuration release \
24-
${ARCH} \
24+
"${ARCH}" \
2525
--disable-sandbox \
26-
${CACHE}
26+
"${CACHE}"

script/lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ periphery scan --retain-public --strict
3737

3838
echo
3939
echo "--> 📜 Bash"
40+
shellcheck --shell=bash script/*
4041
shfmt -d -i 2 -l contrib/ script/

script/version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
VERSION=$(git describe --abbrev=0 --tags)
1313
VERSION=${VERSION#v}
1414

15-
SCRIPT_PATH=$(dirname $(which $0))
15+
SCRIPT_PATH=$(dirname "$(which "$0")")
1616

1717
cat <<EOF >"${SCRIPT_PATH}/../Sources/MasKit/Package.swift"
1818
// Generated by: script/version
@@ -21,4 +21,4 @@ enum Package {
2121
}
2222
EOF
2323

24-
echo ${VERSION}
24+
echo "${VERSION}"

0 commit comments

Comments
 (0)