diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 21:28:54 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 21:28:54 +0300 |
commit | bcb49941cd1f1d10b38ad0faef554f7f934702d3 (patch) | |
tree | 6469665aeb2848f777631f3f369ff84e3f3df103 | |
parent | 398a37f497b048ec39b1e20c4f7b42b8c01d94a2 (diff) | |
download | arching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.tar.gz arching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.tar.bz2 arching-kaos-tools-bcb49941cd1f1d10b38ad0faef554f7f934702d3.zip |
Removed inlined thens
-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 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" |