From 9aa3a998d4a0e9a6ae67242039fd7d131b4afc64 Mon Sep 17 00:00:00 2001 From: "Brock A. Martin" Date: Tue, 26 Jul 2016 21:49:29 -0500 Subject: [PATCH] switched to read instead of 'dd' --- asc2qr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asc2qr.sh b/asc2qr.sh index 708d869..a10e3ef 100755 --- a/asc2qr.sh +++ b/asc2qr.sh @@ -48,7 +48,7 @@ fi ## Split the key file into usable chunks that the QR encoder can consume chunks=() while true; do - s=$( dd bs=${max_qr_bytes} count=1 2>/dev/null ) + IFS= read -r -d'\0' -n ${max_qr_bytes} s if [ ${#s} -gt 0 ]; then chunks+=("${s}") else