From bcb49941cd1f1d10b38ad0faef554f7f934702d3 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 20 Aug 2023 21:28:54 +0300 Subject: Removed inlined thens --- 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 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" -- cgit v1.2.3