From 857f1720f181927249dec7430042eb7b11560bba Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 20 Aug 2023 13:03:52 +0300 Subject: Fixed a bug that could cause installation to fail --- ipfs-check-install-setup-init-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3