Skip to content

Commit 589edd1

Browse files
committed
style: fix shfmt lint errors
1 parent 3c38fbb commit 589edd1

File tree

3 files changed

+34
-31
lines changed

3 files changed

+34
-31
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ indent_size = 2
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10+
11+
[*.sh]
12+
space_redirects = true # like -sr

functions.sh

+19-19
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ fatal() {
2121
function get_arch() {
2222
local arch
2323
case $(uname -m) in
24-
x86_64)
25-
arch="amd64"
26-
;;
27-
ppc64le)
28-
arch="ppc64le"
29-
;;
30-
s390x)
31-
arch="s390x"
32-
;;
33-
aarch64)
34-
arch="arm64"
35-
;;
36-
armv7l)
37-
arch="arm32v7"
38-
;;
39-
*)
40-
echo "$0 does not support architecture ${arch} ... aborting"
41-
exit 1
42-
;;
24+
x86_64)
25+
arch="amd64"
26+
;;
27+
ppc64le)
28+
arch="ppc64le"
29+
;;
30+
s390x)
31+
arch="s390x"
32+
;;
33+
aarch64)
34+
arch="arm64"
35+
;;
36+
armv7l)
37+
arch="arm32v7"
38+
;;
39+
*)
40+
echo "$0 does not support architecture ${arch} ... aborting"
41+
exit 1
42+
;;
4343
esac
4444

4545
echo "${arch}"

update.sh

+12-12
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ EOF
3030
SKIP=false
3131
while getopts "sh" opt; do
3232
case "${opt}" in
33-
s)
34-
SKIP=true
35-
shift
36-
;;
37-
h)
38-
usage
39-
exit
40-
;;
41-
\?)
42-
usage
43-
exit
44-
;;
33+
s)
34+
SKIP=true
35+
shift
36+
;;
37+
h)
38+
usage
39+
exit
40+
;;
41+
\?)
42+
usage
43+
exit
44+
;;
4545
esac
4646
done
4747

0 commit comments

Comments
 (0)