diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 13:03:52 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-20 13:03:52 +0300 |
commit | 857f1720f181927249dec7430042eb7b11560bba (patch) | |
tree | 485c13bd99adf3b941f5274b13f90fe86a02d161 /ipfs-check-install-setup-init-update | |
parent | 2e5a5246016724aca4f3bbc2d7418542317a5147 (diff) | |
download | arching-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
Diffstat (limited to 'ipfs-check-install-setup-init-update')
-rwxr-xr-x | ipfs-check-install-setup-init-update | 2 |
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" |