diff options
author | Daniel Baumann <daniel@debian.org> | 2008-01-15 08:25:29 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:35:39 +0100 |
commit | 342d2870ebe66fc987bbb6523c67885631eb0e00 (patch) | |
tree | 6d9332db2197bb7b54e3e3b97f83474cd2430e56 /functions/losetup.sh | |
parent | e8e4001524ee6fa47ce7ffe06da39b6d43e065d2 (diff) | |
download | vyos-live-build-342d2870ebe66fc987bbb6523c67885631eb0e00.tar.gz vyos-live-build-342d2870ebe66fc987bbb6523c67885631eb0e00.zip |
Consistently using the pipe as seperator in sed commands now.
Diffstat (limited to 'functions/losetup.sh')
-rwxr-xr-x | functions/losetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh index b2a4f0610..c3e90bcf5 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -27,7 +27,7 @@ Losetup () ${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}" else - CYLINDERS="$(echo "$FDISK_OUT" | sed -ne "s_^$LOOPDEVICE[ *]*\([0-9]*\).*_\1_p")" + CYLINDERS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")" OFFSET="$(expr ${CYLINDERS} '*' 512)" Echo_message "Mounting ${DEVICE} with offset ${OFFSET}" |