Skip to content

Commit

Permalink
style: fix shfmt lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Oct 23, 2020
1 parent 3c38fbb commit 589edd1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -7,3 +7,6 @@ indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.sh]
space_redirects = true # like -sr
38 changes: 19 additions & 19 deletions functions.sh
Expand Up @@ -21,25 +21,25 @@ fatal() {
function get_arch() {
local arch
case $(uname -m) in
x86_64)
arch="amd64"
;;
ppc64le)
arch="ppc64le"
;;
s390x)
arch="s390x"
;;
aarch64)
arch="arm64"
;;
armv7l)
arch="arm32v7"
;;
*)
echo "$0 does not support architecture ${arch} ... aborting"
exit 1
;;
x86_64)
arch="amd64"
;;
ppc64le)
arch="ppc64le"
;;
s390x)
arch="s390x"
;;
aarch64)
arch="arm64"
;;
armv7l)
arch="arm32v7"
;;
*)
echo "$0 does not support architecture ${arch} ... aborting"
exit 1
;;
esac

echo "${arch}"
Expand Down
24 changes: 12 additions & 12 deletions update.sh
Expand Up @@ -30,18 +30,18 @@ EOF
SKIP=false
while getopts "sh" opt; do
case "${opt}" in
s)
SKIP=true
shift
;;
h)
usage
exit
;;
\?)
usage
exit
;;
s)
SKIP=true
shift
;;
h)
usage
exit
;;
\?)
usage
exit
;;
esac
done

Expand Down

0 comments on commit 589edd1

Please sign in to comment.