Change MAKE_FOLDERS into accepting any value for subfolder

Internal function
This commit is contained in:
Igor Pecovnik
2022-02-27 21:49:03 +01:00
parent 92a1c729d4
commit 8ac58b806c

View File

@@ -47,17 +47,11 @@ fi
# image artefact destination with or without subfolder
FINALDEST=$DEST/images
if [[ "${MAKE_FOLDERS}" == yes ]]; then
if [[ "$RC" == yes ]]; then
FINALDEST=$DEST/images/"${BOARD}"/rc
elif [[ "$BETA" == yes ]]; then
FINALDEST=$DEST/images/"${BOARD}"/nightly
else
FINALDEST=$DEST/images/"${BOARD}"/archive
fi
if [[ -n "${MAKE_FOLDERS}" ]]; then
FINALDEST=$DEST/images/"${BOARD}"/"${MAKE_FOLDERS}"
install -d ${FINALDEST}
fi