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_losetup | |
parent | 81a76d4adc812c16be8238fedda25bd43ab3a379 (diff) | |
download | vyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.tar.gz vyos-live-build-f2734daf0a9519db6b303683d3ac413a20d56e2a.zip |
Replacing backticks with POSIX expression.
Diffstat (limited to 'helpers/lh_losetup')
-rwxr-xr-x | helpers/lh_losetup | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/lh_losetup b/helpers/lh_losetup index 662b4ad76..2ea7f9ea3 100755 --- a/helpers/lh_losetup +++ b/helpers/lh_losetup @@ -38,10 +38,10 @@ FILE="${2}" PARTITION="${3:=1}" ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" -FDISK_OUT="`fdisk -l -u ${DEVICE} 2>&1`" +FDISK_OUT="$(fdisk -l -u ${DEVICE} 2>&1)" ${LH_ROOT_COMMAND} ${LH_LOSETUP} -d "${DEVICE}" -LOOPDEVICE="`echo ${DEVICE}p${PARTITION}`" +LOOPDEVICE="$(echo ${DEVICE}p${PARTITION})" if [ "${PARTITION}" = "0" ] then @@ -49,8 +49,8 @@ then ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" else - CYLINDERS="`echo "$FDISK_OUT" | sed -ne "s_^$LOOPDEVICE[ *]*\([0-9]*\).*_\1_p"`" - OFFSET="`expr ${CYLINDERS} '*' 512`" + CYLINDERS="$(echo "$FDISK_OUT" | sed -ne "s_^$LOOPDEVICE[ *]*\([0-9]*\).*_\1_p")" + OFFSET="$(expr ${CYLINDERS} '*' 512)" Echo_message "Mounting ${DEVICE} with offset ${OFFSET}" |