diff --git a/.editorconfig b/.editorconfig index 0f1786729b..e8ca6e9a98 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,6 @@ indent_size = 2 indent_style = space insert_final_newline = true trim_trailing_whitespace = true + +[*.sh] +space_redirects = true # like -sr diff --git a/functions.sh b/functions.sh index be9c575396..e0552c2476 100755 --- a/functions.sh +++ b/functions.sh @@ -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}" diff --git a/update.sh b/update.sh index 507af21a75..25340c69c6 100755 --- a/update.sh +++ b/update.sh @@ -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