aboutsummaryrefslogtreecommitdiff
path: root/ipfs-check-install-setup-init-update
diff options
context:
space:
mode:
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-xipfs-check-install-setup-init-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update
index 219e898..bdd94c9 100755
--- a/ipfs-check-install-setup-init-update
+++ b/ipfs-check-install-setup-init-update
@@ -42,7 +42,7 @@ swarm_install() {
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 [ "$(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"