Skip to content

Commit

Permalink
feat: support arm builds (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: James Hegedus <jthegedus@hey.com>
  • Loading branch information
nklmilojevic and jthegedus committed Jul 20, 2021
1 parent f4d1fba commit ed7631b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,22 @@ function check_dependencies() {

function get_os_architecture() {
local architecture
if [[ $(getconf LONG_BIT) == "64" ]]; then

case "$(uname -m)" in
x86_64 | amd64)
architecture="x86_64"
else
;;
i686 | i386)
architecture="x86"
fi
;;
aarch64 | arm64)
architecture="arm"
;;
*)
log_failure_and_exit "Architecture $(uname -m) not supported!"
;;
esac

echo "${architecture}"
}

Expand All @@ -77,7 +88,7 @@ function get_os_name() {
echo "${os_name}"
}

get_plugin_name() {
function get_plugin_name() {
basename "$(dirname "$(dirname "$0")")"
}

Expand Down

0 comments on commit ed7631b

Please sign in to comment.