File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ if [ "${BASE_DISTRO}" == "ubuntu" ]; then
1919 [ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/ubuntu-*.xz | head -n 1`
2020 # Default user ubuntu
2121 [ -n "$BASE_USER" ] || BASE_USER=ubuntu
22+ elif [ "${BASE_DISTRO}" == "raspios64" ]; then
23+ [ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/*-{raspbian,raspios}-*-arm64-*.zip | head -n 1`
2224else
2325 # Default image raspbian
2426 [ -n "$BASE_ZIP_IMG" ] || BASE_ZIP_IMG=`ls -t $BASE_IMAGE_PATH/*-{raspbian,raspios}*.zip | head -n 1`
8183# Arch for now either armv7l, arm64 or aarch64
8284[ -n "$BASE_ARCH" ] || BASE_ARCH=armv7l
8385
86+ # If you want your variant not to have the name appending, enable this
87+ [ -n "$BASE_IGNORE_VARIANT_NAME" ] || BASE_IGNORE_VARIANT_NAME=no
88+
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ if [ "${BASE_RELEASE_IMG_NAME}" == "default" ]; then
2525 # Handle variant name
2626 for CHANGE_STRING in " ${CHANGE_STRING_LIST[@]} "
2727 do
28- if [ -z " $1 " ]; then
29- IMG_FILENAME=$( echo " ${FILENAME::- 4} " -" ${DIST_VERSION} " | sed " s/${CHANGE_STRING} /${DIST_NAME,,} /" ) .img
28+ if [ -z " $1 " ] || [ " $BASE_IGNORE_VARIANT_NAME " == " yes " ] ; then
29+ IMG_FILENAME=$( echo " ${FILENAME::- 4} " -" ${DIST_VERSION} " | sed " s/${CHANGE_STRING} /${DIST_NAME,,} /" ) .img
3030 else
3131 IMG_FILENAME=$( echo " ${FILENAME::- 4} " -" ${DIST_VERSION} " | sed " s/${CHANGE_STRING} /${DIST_NAME,,} -$1 /" ) .img
3232 fi
You can’t perform that action at this time.
0 commit comments