aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-07 01:41:33 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-07 01:41:33 +0300
commit19cb280a2cc8da730b2e6797aede1b36253e6714 (patch)
tree9ae72bba54856d99a00cead27455556906c6e641 /ipfs-check-install-setup-init-update
parentab9b088ad0c097f803bd489a68a7f45db9af8570 (diff)
downloadarching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.tar.gz
arching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.tar.bz2
arching-kaos-tools-19cb280a2cc8da730b2e6797aede1b36253e6714.zip
Fixes and updates in tests
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-xipfs-check-install-setup-init-update6
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