diff options
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-x | ipfs-check-install-setup-init-update | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update index b892768..4472417 100755 --- a/ipfs-check-install-setup-init-update +++ b/ipfs-check-install-setup-init-update @@ -20,7 +20,8 @@ _ak_ipfs_install(){ } which ipfs > /dev/null 2>&1 -if [ $? -ne 0 ]; then +if [ $? -ne 0 ] +then _ak_ipfs_download _ak_ipfs_install _ak_ipfs init @@ -29,7 +30,8 @@ else logit "INFO" "Found IPFS! Skipping downloading..." _ak_ipfs_swarm_install fi -if [ ! -d $HOME/.ipfs ]; then +if [ ! -d $AK_IPFS_REPO ] +then _ak_ipfs init _ak_ipfs_swarm_install fi |