From 8772827789ff4e1fe712de6e6ea5ffe01190073e Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 31 Jul 2019 11:56:44 +0100 Subject: [PATCH] download to same directory --- lnd.updates/lnd.update.v0.7.1-beta.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnd.updates/lnd.update.v0.7.1-beta.sh b/lnd.updates/lnd.update.v0.7.1-beta.sh index 8122643..4846866 100644 --- a/lnd.updates/lnd.update.v0.7.1-beta.sh +++ b/lnd.updates/lnd.update.v0.7.1-beta.sh @@ -32,6 +32,8 @@ else echo "OK running on $(uname -m) architecture." fi +cd "${downloadDir}" + # extract the SHA256 hash from the manifest file for the corresponding platform sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt if [ ${isARM} -eq 1 ] ; then @@ -56,7 +58,6 @@ echo "SHA256 hash: $lndSHA256" echo "" # get LND binary -cd "${downloadDir}" binaryName="lnd-linux-${lndOSversion}-v${lndVersion}.tar.gz" sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName}