Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fix command hook
Browse files Browse the repository at this point in the history
  • Loading branch information
adikari committed Dec 20, 2022
1 parent d418d3f commit a5d14f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hooks/command
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -euo pipefail

check_cmd() {
Expand All @@ -20,7 +20,8 @@ err() {
}

get_architecture() {
local _arch="$(arch)"
local _ostype="$(uname -s)"
local _arch="$(uname -m)"
local _arm=("arm armhf aarch64 aarch64_be armv6l armv7l armv8l arm64e") # arm64
local _amd=("x86 x86pc i386 i686 i686-64 x64 x86_64 x86_64h athlon") # amd64

Expand All @@ -33,7 +34,7 @@ get_architecture() {
exit 2
fi

RETVAL="$_arch"
RETVAL="${_ostype}_${_arch}"
}

need_cmd() {
Expand Down

0 comments on commit a5d14f0

Please sign in to comment.