aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:03:52 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-20 13:03:52 +0300
commit857f1720f181927249dec7430042eb7b11560bba (patch)
tree485c13bd99adf3b941f5274b13f90fe86a02d161
parent2e5a5246016724aca4f3bbc2d7418542317a5147 (diff)
downloadarching-kaos-tools-857f1720f181927249dec7430042eb7b11560bba.tar.gz
arching-kaos-tools-857f1720f181927249dec7430042eb7b11560bba.tar.bz2
arching-kaos-tools-857f1720f181927249dec7430042eb7b11560bba.zip
Fixed a bug that could cause installation to fail
-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"