From 96a6abf1ed89cf8a6ab654ea82567562e5881d9a Mon Sep 17 00:00:00 2001 From: Gorian <1012176+Gorian@users.noreply.github.com> Date: Sat, 14 Oct 2023 12:20:33 -0700 Subject: [PATCH] Update flatpak_build_download_only.sh Updated to use double brackets instead of single. Shortened `mkdir` using expansion for simplicity. Updated script so that all variables are properly quoted. --- automation_tools/flatpak_build_download_only.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/automation_tools/flatpak_build_download_only.sh b/automation_tools/flatpak_build_download_only.sh index 009db9de..122b244f 100755 --- a/automation_tools/flatpak_build_download_only.sh +++ b/automation_tools/flatpak_build_download_only.sh @@ -4,7 +4,7 @@ git config --global protocol.file.allow always -if [ "${GITHUB_REF##*/}" = "main" ]; then +if [[ "${GITHUB_REF##*/}" == "main" ]]; then BUNDLE_NAME="RetroDECK.flatpak" FOLDER=retrodeck-flatpak-cooker else @@ -12,13 +12,12 @@ else FOLDER=retrodeck-flatpak-cooker fi -mkdir -vp ${GITHUB_WORKSPACE}/local -mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker +mkdir -vp "${GITHUB_WORKSPACE}"/{local,retrodeck-flatpak-cooker} flatpak-builder --user --force-clean \ --install-deps-from=flathub \ --install-deps-from=flathub-beta \ - --repo=${GITHUB_WORKSPACE}/local \ + --repo="${GITHUB_WORKSPACE}/local" \ --download-only \ - ${GITHUB_WORKSPACE}/"$FOLDER" \ + "${GITHUB_WORKSPACE}/${FOLDER}" \ net.retrodeck.retrodeck.yml