Merge pull request #1404 from rootzoll/fix-unary-error

Update lnd.autounlock.sh
This commit is contained in:
Christian Rotzoll 2020-08-02 15:54:50 +02:00 committed by GitHub
commit 3b83237563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ Password C will be stored on the device.
sleep 4
error=""
source <(sudo /home/admin/config.scripts/lnd.unlock.sh "$passwordC")
if [ ${error} -gt 0 ];then
if [ "${error}" != "" ];then
echo "# PASSWORD C is wrong - try again or cancel"
sleep 3
sudo /home/admin/config.scripts/lnd.autounlock.sh on