Skip to content

Commit

Permalink
build-vm: also catch the null byte in the second case
Browse files Browse the repository at this point in the history
  • Loading branch information
bugfinder committed Apr 17, 2018
1 parent ca2c472 commit c269d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-vm
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ vm_first_stage() {
vm_attach_root
if test -n "$VM_SWAP" ; then
vm_attach_swap
BUILDSTATUS=$(dd if="$VM_SWAP" bs=12 count=1 2>/dev/null)
BUILDSTATUS=$(dd if="$VM_SWAP" bs=12 count=1 2>/dev/null | tr '\0' a)
case $BUILDSTATUS in
BUILDSTATUS[02])
mkdir -p $BUILD_ROOT/.build.packages
Expand Down

0 comments on commit c269d06

Please sign in to comment.