download to same directory

This commit is contained in:
openoms
2019-07-31 11:56:44 +01:00
parent 23f97a2296
commit 8772827789

View File

@@ -32,6 +32,8 @@ else
echo "OK running on $(uname -m) architecture." echo "OK running on $(uname -m) architecture."
fi fi
cd "${downloadDir}"
# extract the SHA256 hash from the manifest file for the corresponding platform # 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 sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/manifest-v${lndVersion}.txt
if [ ${isARM} -eq 1 ] ; then if [ ${isARM} -eq 1 ] ; then
@@ -56,7 +58,6 @@ echo "SHA256 hash: $lndSHA256"
echo "" echo ""
# get LND binary # get LND binary
cd "${downloadDir}"
binaryName="lnd-linux-${lndOSversion}-v${lndVersion}.tar.gz" binaryName="lnd-linux-${lndOSversion}-v${lndVersion}.tar.gz"
sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName} sudo -u admin wget -N https://github.com/lightningnetwork/lnd/releases/download/v${lndVersion}/${binaryName}