diff options
-rw-r--r-- | src/share/poudriere/image.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/share/poudriere/image.sh b/src/share/poudriere/image.sh index 3715b79c..01b24c0b 100644 --- a/src/share/poudriere/image.sh +++ b/src/share/poudriere/image.sh @@ -390,8 +390,10 @@ post_getopts : ${IMAGENAME:=poudriereimage} MASTERNAME=${JAILNAME}-${PTNAME}${SETNAME:+-${SETNAME}} -MAINMEDIATYPE=$(echo ${MEDIATYPE} | cut -d '+' -f 1) -SUBMEDIATYPE=$(echo ${MEDIATYPE} | cut -d '+' -f 2) +MAINMEDIATYPE=${MEDIATYPE%%+*} +MEDIAREMAINDER=${MEDIATYPE#*+} +SUBMEDIATYPE=${MEDIAREMAINDER%%+*} +MEDIAREMAINDER=${MEDIAREMAINDER#*+} if [ "${MEDIATYPE}" = "none" ]; then err 1 "Missing -t option" |