Explorar el Código

Update install.sh, avoid ARCH: unbound variable

Victor Vieux hace 1 año
padre
commit
6481b7f34c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      scripts/install.sh

+ 2 - 1
scripts/install.sh

@@ -26,7 +26,8 @@ require() {
 
 [ "$(uname -s)" = "Linux" ] || error 'This script is intended to run on Linux only.'
 
-case "$(uname -m)" in
+ARCH=$(uname -m)
+case "$ARCH" in
     x86_64) ARCH="amd64" ;;
     aarch64|arm64) ARCH="arm64" ;;
     *) error "Unsupported architecture: $ARCH" ;;