switched to read instead of 'dd'
This commit is contained in:
parent
5094f35d05
commit
9aa3a998d4
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ fi
|
||||||
## Split the key file into usable chunks that the QR encoder can consume
|
## Split the key file into usable chunks that the QR encoder can consume
|
||||||
chunks=()
|
chunks=()
|
||||||
while true; do
|
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
|
if [ ${#s} -gt 0 ]; then
|
||||||
chunks+=("${s}")
|
chunks+=("${s}")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue