From b3314e1adae0bb6d0fffc8afcdc1cad680b5ec77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Barroso=20Galindo?= Date: Sat, 23 Apr 2022 17:12:31 +0200 Subject: [PATCH] Fixing install_mra_alternatives_under_releases --- .github/update_distribution.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/update_distribution.sh b/.github/update_distribution.sh index 46d2f2530..3a60f8c85 100755 --- a/.github/update_distribution.sh +++ b/.github/update_distribution.sh @@ -487,9 +487,14 @@ install_mra_alternatives_under_releases() { local TARGET_DIR="${2}" echo "Installing MRA Alternatives under /releases ${4}" + + if [[ "$(ls -a ${TMP_FOLDER}/releases/_alternatives/ 2> /dev/null)" == "" ]] ; then + >&2 echo "WARNING! _alternatives folder is empty." + return + fi - mkdir -p "${TARGET_DIR}/_Arcade" - copy_file "${TMP_FOLDER}/releases/_alternatives" "${TARGET_DIR}/_Arcade/_alternatives" + mkdir -p "${TARGET_DIR}/_Arcade/_alternatives" + cp -r "${TMP_FOLDER}/releases/_alternatives/*" "${TARGET_DIR}/_Arcade/_alternatives/" } install_fonts() {