Parcourir la source

Exit if architecture is not detected for IPFS install

Bob Mottram il y a 7 ans
Parent
révision
9117ee7118
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      src/freedombone-app-ipfs

+ 4
- 0
src/freedombone-app-ipfs Voir le fichier

@@ -427,6 +427,10 @@ function mesh_install_ipfs_go {
427 427
             echo $"Using $IPFS_ARCH"
428 428
         fi
429 429
     fi
430
+    if [ ! $IPFS_ARCH ]; then
431
+        echo $'Architecture not detected for IPFS install'
432
+        exit 738765235
433
+    fi
430 434
 
431 435
     IPFS_FILE=go-ipfs_v${IPFS_GO_VERSION}_linux-${IPFS_ARCH}.tar.gz
432 436
     wget https://ipfs.io/ipns/dist.ipfs.io/go-ipfs/v${IPFS_GO_VERSION}/${IPFS_FILE}