Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Jan 5, 2024
1 parent 28ae46a commit f89cbe3
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,24 @@ install_version() {
}

get_platform() {
uname | tr '[:upper:]' '[:lower:]'
uname | tr '[:upper:]' '[:lower:]'
}

get_arch() {
local arch=""

case "$(uname -m)" in
x86_64|amd64) arch="amd64"; ;;
i686|i386) arch="386"; ;;
armv6l) arch="armv6"; ;;
armv7l) arch="armv7"; ;;
aarch64|arm64) arch="arm64"; ;;
ppc64le) arch="ppc64le"; ;;
*)
echo "Arch '$(uname -m)' not supported!" >&2
exit 1
;;
esac

echo -n $arch
local arch=""

case "$(uname -m)" in
x86_64|amd64) arch="amd64"; ;;
i686|i386) arch="386"; ;;
armv6l) arch="armv6"; ;;
armv7l) arch="armv7"; ;;
aarch64|arm64) arch="arm64"; ;;
ppc64le) arch="ppc64le"; ;;
*)
echo "Arch '$(uname -m)' not supported!" >&2
exit 1
;;
esac

echo -n $arch
}

0 comments on commit f89cbe3

Please sign in to comment.