Skip to content

Commit f72fee5

Browse files
committed
chore: update install.sh
Signed-off-by: Xin Liu <sam@secondstate.io>
1 parent c7bd9b0 commit f72fee5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ bin_dir=$gaianet_base_dir/bin
367367
printf "[+] Installing gaianet CLI tool ...\n"
368368
check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/gaianet $bin_dir/gaianet
369369

370-
if [ "$repo_branch" = "main" ]; then
370+
if [ "$repo_branch" = "demo" ]; then
371371
check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/gaianet $bin_dir/gaianet
372372
else
373373
check_curl https://github.com/GaiaNet-AI/gaianet-node/raw/$repo_branch/gaianet $bin_dir/gaianet
@@ -437,7 +437,7 @@ else
437437
printf "[+] Downloading default config.json ...\n"
438438

439439
if [ ! -f "$gaianet_base_dir/config.json" ]; then
440-
if [ "$repo_branch" = "main" ]; then
440+
if [ "$repo_branch" = "demo" ]; then
441441
check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/config.json $gaianet_base_dir/config.json
442442
else
443443
check_curl https://github.com/GaiaNet-AI/gaianet-node/raw/$repo_branch/config.json $gaianet_base_dir/config.json
@@ -743,7 +743,7 @@ else
743743
# download the default nodeid.json
744744
if [ ! -f "$gaianet_base_dir/nodeid.json" ]; then
745745
printf " * Download nodeid.json ...⏳\n"
746-
if [ "$repo_branch" = "main" ]; then
746+
if [ "$repo_branch" = "demo" ]; then
747747
check_curl https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/nodeid.json $gaianet_base_dir/nodeid.json
748748
else
749749
check_curl https://github.com/GaiaNet-AI/gaianet-node/raw/refs/heads/$repo_branch/nodeid.json $gaianet_base_dir/nodeid.json
@@ -841,7 +841,7 @@ else
841841
printf " * Download frpc.toml\n"
842842
# check_curl_silent https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/frpc.toml $gaianet_base_dir/gaia-frp/frpc.toml
843843

844-
if [ "$repo_branch" = "main" ]; then
844+
if [ "$repo_branch" = "demo" ]; then
845845
check_curl_silent https://github.com/GaiaNet-AI/gaianet-node/releases/download/$version/frpc.toml $gaianet_base_dir/gaia-frp/frpc.toml
846846
else
847847
check_curl_silent https://github.com/GaiaNet-AI/gaianet-node/raw/refs/heads/$repo_branch/frpc.toml $gaianet_base_dir/gaia-frp/frpc.toml

0 commit comments

Comments
 (0)