From 19cb280a2cc8da730b2e6797aede1b36253e6714 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 7 Jun 2024 01:41:33 +0300 Subject: Fixes and updates in tests --- ipfs-check-install-setup-init-update | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ipfs-check-install-setup-init-update') 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 -- cgit v1.2.3