Kaynağa Gözat

Update install.sh, avoid ARCH: unbound variable

Victor Vieux 1 yıl önce
ebeveyn
işleme
6481b7f34c
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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" ;;