aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:28:54 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 21:28:54 +0300
commitbcb49941cd1f1d10b38ad0faef554f7f934702d3 (patch)
tree6469665aeb2848f777631f3f369ff84e3f3df103 /ipfs-check-install-setup-init-update
parent398a37f497b048ec39b1e20c4f7b42b8c01d94a2 (diff)
downloadarching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.tar.gz
arching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.tar.bz2
arching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.zip
Removed inlined thens
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 bc1ba92..2612620 100755
--- a/ipfs-check-install-setup-init-update
+++ b/ipfs-check-install-setup-init-update
@@ -40,10 +40,12 @@ install(){
}
swarm_install() {
- if [ ! -f $HOME/.ipfs/swarm.key ]; then
+ if [ ! -f $HOME/.ipfs/swarm.key ]
+ then
logthis "[INFO]" "Downloading swarm key"
wget -O $HOME/.ipfs/swarm.key https://arching-kaos.net/files/swarm.key
- elif [ -f $HOME/.ipfs/swarm.key ] && [ "$(sha512sum $HOME/.ipfs/swarm.key | awk '{ print $1 }')" == "$SWARMSHA512SUM" ]; then
+ elif [ -f $HOME/.ipfs/swarm.key ] && [ "$(sha512sum $HOME/.ipfs/swarm.key | awk '{ print $1 }')" == "$SWARMSHA512SUM" ]
+ then
logthis "[INFO]" "Congrats! You are already in our swarm"
else
logthis "[ERROR]" "Found swarm.key but not ours"