From 8545c048c6f0fa3220f913b7b76998facb39298c Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Thu, 20 Feb 2020 08:12:54 +0000 Subject: use actual boolean state for some simple vars Gbp-Dch: Ignore --- scripts/build/binary_hdd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/build/binary_hdd') diff --git a/scripts/build/binary_hdd b/scripts/build/binary_hdd index b631b8576..e75019ff3 100755 --- a/scripts/build/binary_hdd +++ b/scripts/build/binary_hdd @@ -148,9 +148,10 @@ fi dd if=/dev/zero of=chroot/binary.img bs=1024k count=0 seek=${REAL_DIM} FREELO="$(${LB_LOSETUP} -f)" +MAKEDEV=false if [ ! -b chroot/${FREELO} ] then - MAKEDEV="true" + MAKEDEV=true mv chroot/dev chroot/dev.tmp find /dev | cpio -dmpu chroot @@ -343,8 +344,7 @@ Lodetach ${FREELO} echo "!!! The above error/warning messages can be ignored !!!" -if [ -n "${MAKEDEV}" ] -then +if $MAKEDEV; then rm -rf chroot/dev mv chroot/dev.tmp chroot/dev fi -- cgit v1.2.3