diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-24 08:47:42 +0200 | 
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:27 +0100 | 
| commit | f2734daf0a9519db6b303683d3ac413a20d56e2a (patch) | |
| tree | 6d9d0c85e7141243e0b40adcd847d1cc7c479448 /helpers/lh_binary_usb-hdd | |
| parent | 81a76d4adc812c16be8238fedda25bd43ab3a379 (diff) | |
| download | live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.zip live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.tar.gz  | |
Replacing backticks with POSIX expression.
Diffstat (limited to 'helpers/lh_binary_usb-hdd')
| -rwxr-xr-x | helpers/lh_binary_usb-hdd | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd index 09c38f7..ac5d5a5 100755 --- a/helpers/lh_binary_usb-hdd +++ b/helpers/lh_binary_usb-hdd @@ -81,10 +81,10 @@ then  fi  # Everything which comes here needs to be cleaned up, -DU_DIM="`du -ms binary | cut -f1`" -REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 50`" # Just 2% more to be sure, need something more sophistcated here... +DU_DIM="$(du -ms binary | cut -f1)" +REAL_DIM="$(expr ${DU_DIM} + ${DU_DIM} / 50)" # Just 2% more to be sure, need something more sophistcated here...  dd if=/dev/zero of=chroot/binary.img bs=1024k count=${REAL_DIM} -FREELO="`${LH_LOSETUP} -f`" +FREELO="$(${LH_LOSETUP} -f)"  if [ ! -b chroot/${FREELO} ]  then  	MAKEDEV="true" @@ -124,7 +124,7 @@ esac  ${LH_LOSETUP} -d ${FREELO} -FREELO="`${LH_LOSETUP} -f`" +FREELO="$(${LH_LOSETUP} -f)"  lh_losetup $FREELO chroot/binary.img 1  case "${LH_CHROOT_BUILD}" in @@ -153,8 +153,8 @@ find /live/vmlinuz  EOM  EOF -	rootpartition="`Chroot 'sh grub.sh' 2>/dev/null | grep -A 1 'find /live/vmlinuz' | grep -v 'find /live/vmlinuz'`" -	usbdev="`echo $rootpartition | sed -e 's/,[[:digit:]]//'`" +	rootpartition="$(Chroot 'sh grub.sh' 2>/dev/null | grep -A 1 'find /live/vmlinuz' | grep -v 'find /live/vmlinuz')" +	usbdev="$(echo $rootpartition | sed -e 's/,[[:digit:]]//')"  	echo "Root partition is $rootpartition, device is: $usbdev"  	echo "WAITING..." && read  | 
