Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/498'
Browse files Browse the repository at this point in the history
* origin/pr/498:
  Avoid using xxd
  • Loading branch information
marmarek committed Nov 22, 2022
2 parents f6e493d + 225ec69 commit fc2bd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes-rpc/admin.vm.volume.Import
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ echo -n "$requested_size" | qubesd-query -c /var/run/qubesd.internal.sock \
"$1" >"$tmpfile"

# exit if qubesd returned an error (not '0\0')
if [ "$(head -c 2 "$tmpfile" | xxd -p)" != "3000" ]; then
if [ "$(head -c 2 "$tmpfile" | hexdump -e '/1 "%02x"')" != "3000" ]; then
cat "$tmpfile"
exit 1
fi
Expand Down

0 comments on commit fc2bd4b

Please sign in to comment.