Skip to content

Commit d9f695a

Browse files
fix: resolve shellcheck warnings (runfinch#684)
Issue #, if available: runfinch#550 *Description of changes:* Resolves Shellcheck warnings (Some style issues still remain). Requires Shellcheck to pass as part of the CI process *Testing done:* Shellcheck ran locally - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: River Phillips <[email protected]>
1 parent 98c8ee4 commit d9f695a

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Diff for: .github/workflows/ci.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ jobs:
7272
uses: ludeeus/[email protected]
7373
with:
7474
version: v0.9.0
75-
continue-on-error: true
75+
severity: warning
76+
continue-on-error: false
7677
go-mod-tidy-check:
7778
runs-on: ubuntu-latest
7879
steps:

Diff for: installer-builder/darwin/Resources/uninstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sudo pkill '^socket_vmnet'
1919
sudo pkill '^qemu-system-'
2020
sudo pkill '^limactl'
2121

22-
if [ "$$(readlink "/usr/local/bin/finch")" = "/Applications/Finch/bin/finch" ]; then sudo rm /usr/local/bin/finch; fi
22+
if [ "$(readlink '/usr/local/bin/finch')" = "/Applications/Finch/bin/finch" ]; then sudo rm /usr/local/bin/finch; fi
2323

2424
echo "[1/3] [DONE] Successfully deleted shortcut links"
2525

Diff for: installer-builder/tools/extract-executables.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ updateQEMUEntitlement() {
3636

3737
#$1: the file object
3838
extractExecutables() {
39-
for file in $(ls -a "$1")
39+
for file in "$1"/{*,.*}
4040
do
4141
if [ -d "$1/$file" ];
4242
then

Diff for: installer-builder/tools/merge-back-signed-executables.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
mergeBackSignedExecutables() {
4-
for file in $(ls -a ./installer-builder/output/executables/signed/Payload/EXECUTABLES_TO_SIGN)
4+
for file in ./installer-builder/output/executables/signed/Payload/EXECUTABLES_TO_SIGN/{*,.*}
55
do
66
if [[ $file != '.' && $file != '..' ]]
77
then

0 commit comments

Comments
 (0)