Ensure no carriage return in qr code

This commit is contained in:
Bob Mottram 2017-09-03 11:02:50 +01:00
parent 1d441d393d
commit 249d56eb24
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ function syncthing_show_id {
clear
echo $'Your Syncthing ID code'
echo ''
echo "$SYNCTHING_ID" | qrencode -t UTF8
echo -n "$SYNCTHING_ID" | qrencode -t UTF8
echo ''
read -n1 -rsp $"Press any key to continue..." key
}

View File

@ -1312,7 +1312,7 @@ function show_tripwire_verification_code {
echo $'Tripwire Verification Code'
echo ''
DBHASH=$(sha512sum /var/lib/tripwire/${HOSTNAME}.twd)
echo "$DBHASH" | qrencode -t UTF8
echo -n "$DBHASH" | qrencode -t UTF8
echo ''
echo "$DBHASH"
echo ''