cl.hsmtool: fix password display

This commit is contained in:
openoms 2022-08-13 08:48:34 +01:00
parent b20293a0c9
commit 864b261355
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65

View File

@ -143,10 +143,10 @@ function decryptHSMsecret() {
echo "# using the password from parameter"
elif [ -f $passwordFile ];then
echo "# Getting the password from $passwordFile"
password=$(cat sudo cat $passwordFile)
password=$(sudo cat $passwordFile)
else
passwordToFile
password=$(cat sudo cat $passwordFile)
password=$(sudo cat $passwordFile)
fi
if echo "${password}" | sudo -u bitcoin lightning-hsmtool decrypt \
"$hsmSecretPath"; then