From 8ac58b806c6f32af9b3d55df6be1dea4379c3c0e Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 27 Feb 2022 21:49:03 +0100 Subject: [PATCH] Change MAKE_FOLDERS into accepting any value for subfolder Internal function --- lib/configuration.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/configuration.sh b/lib/configuration.sh index 3a7ce0ecd6..2b77fcca09 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -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