From 7cd4a3a5bbb2787a2c887ab92f1f7c2ecd6a7c8f Mon Sep 17 00:00:00 2001 From: Michael Yuan Date: Mon, 15 Apr 2024 14:02:24 -0500 Subject: [PATCH] Use cached registry.wasm --- install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 9edbf34..5ffb1bc 100755 --- a/install.sh +++ b/install.sh @@ -211,13 +211,12 @@ printf "\n" # 8 Generate node ID and copy config to dashboard printf "[+] Downloading the registry.wasm ...\n\n" -curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm -# if [ ! -f "$gaianet_base_dir/registry.wasm" ] || [ "$reinstall" -eq 1 ]; then -# printf "[+] Downloading the registry.wasm ...\n\n" -# curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm -# else -# printf "[+] Using cached registry ...\n\n" -# fi +if [ ! -f "$gaianet_base_dir/registry.wasm" ] || [ "$reinstall" -eq 1 ]; then + printf "[+] Downloading the registry.wasm ...\n\n" + curl -s -LO https://github.com/GaiaNet-AI/gaianet-node/raw/main/utils/registry/registry.wasm +else + printf "[+] Using cached registry ...\n\n" +fi printf "[+] Generating node ID ...\n" wasmedge --dir .:. registry.wasm printf "\n"