create_livestick: fix bad subst. works only in bash. thanks fritsch

This commit is contained in:
Stefan Saraev 2013-04-27 13:01:48 +03:00
parent 499c9219b9
commit 13bb8100d3

View File

@ -44,7 +44,7 @@ fi
DISK="$1" DISK="$1"
### If DISK ends with a number, add "p1" instead of "1" for the first partition ### If DISK ends with a number, add "p1" instead of "1" for the first partition
case "${DISK: -1:1}" in case ${DISK#${DISK%?}} in
([0-9]) PART="${DISK}p1";; ([0-9]) PART="${DISK}p1";;
(*) PART="${DISK}1";; (*) PART="${DISK}1";;
esac esac