Ver código fonte

Ensure no carriage return in qr code

Bob Mottram 7 anos atrás
pai
commit
249d56eb24
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      src/freedombone-app-syncthing
  2. 1
    1
      src/freedombone-controlpanel

+ 1
- 1
src/freedombone-app-syncthing Ver arquivo

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

+ 1
- 1
src/freedombone-controlpanel Ver arquivo

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