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 committed by Stephan Raue
parent 412141f521
commit 073cac2232

View File

@ -44,7 +44,7 @@ fi
DISK="$1"
### 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";;
(*) PART="${DISK}1";;
esac