diff --git a/automation_tools/flatpak_build_bundle.sh b/automation_tools/flatpak_build_bundle.sh index cef69eff..0ad6ea4f 100755 --- a/automation_tools/flatpak_build_bundle.sh +++ b/automation_tools/flatpak_build_bundle.sh @@ -2,8 +2,10 @@ # This is building the bundle RetroDECK.flatpak after the download and build steps are done -if [ "${GITHUB_REF##*/}" = "main" ]; then - flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck +if [[ "${GITHUB_REF##*/}" == "main" ]]; then + flatpak = "RetroDECK.flatpak" else - flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK-cooker.flatpak net.retrodeck.retrodeck -fi \ No newline at end of file + flatpak = "RetroDECK-cooker.flatpak" +fi + +flatpak build-bundle "${GITHUB_WORKSPACE}/local" "${flatpak}" net.retrodeck.retrodeck