diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-02-20 08:12:54 +0000 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-03-09 11:21:24 +0000 |
commit | 8545c048c6f0fa3220f913b7b76998facb39298c (patch) | |
tree | 2fea2d22d8fa3660ad7765c59eafe72b8f3e344d /scripts/build/binary_hdd | |
parent | 2c78d36bd516dbd313b6f55cad0e06e320cd4c03 (diff) | |
download | vyos-live-build-8545c048c6f0fa3220f913b7b76998facb39298c.tar.gz vyos-live-build-8545c048c6f0fa3220f913b7b76998facb39298c.zip |
use actual boolean state for some simple vars
Gbp-Dch: Ignore
Diffstat (limited to 'scripts/build/binary_hdd')
-rwxr-xr-x | scripts/build/binary_hdd | 6 |
1 files changed, 3 insertions, 3 deletions
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 |