From 9094bc64bec4ceec101c7b0e44e2ff74fd172f10 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 16 Jan 2025 10:52:52 +0000 Subject: [PATCH] flatpak: Quote most of the bash variables --- flatpak/flatpak_ci_initiative.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/flatpak/flatpak_ci_initiative.yml b/flatpak/flatpak_ci_initiative.yml index a0dab75..bfc9795 100644 --- a/flatpak/flatpak_ci_initiative.yml +++ b/flatpak/flatpak_ci_initiative.yml @@ -8,6 +8,7 @@ RUN_TESTS: "1" # Pass "--runtime" in order to build a runtime or extension EXPORT_RUNTIME: "" + NIGHTLY_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo" # Till now this was the template job used for everything, # so assume its default tags are x86 to avoid breaking backwards # compatibility. @@ -24,17 +25,19 @@ # Print the date, since appstream depends on local timezone - date && date -u - - | - export REWRITE_RUN_TESTS="--run-tests" - if [[ $RUN_TESTS != "1" ]]; then + - export REWRITE_RUN_TESTS="--run-tests" + - |- + if [[ "${RUN_TESTS}" != "1" ]]; then export REWRITE_RUN_TESTS="--no-run-tests" fi - rewrite-flatpak-manifest ${REWRITE_RUN_TESTS} ${MANIFEST_PATH} ${FLATPAK_MODULE} -- ${CONFIG_OPTS} + - echo "${REWRITE_RUN_TESTS}" + + - rewrite-flatpak-manifest "${REWRITE_RUN_TESTS}" "${MANIFEST_PATH}" "${FLATPAK_MODULE}" -- ${CONFIG_OPTS} - >- xvfb-run -a -s "-screen 0 1024x768x24" -- dbus-run-session - flatpak-builder ${CI_FB_ARGS} --keep-build-dirs --user --disable-rofiles-fuse --build-only flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH} + flatpak-builder ${CI_FB_ARGS} --keep-build-dirs --user --disable-rofiles-fuse --build-only flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} "${MANIFEST_PATH}" # rewrite-flatpak-manifest will make our checkout dirty and meson will complain # FIXME: we need to copy the manifest rather than modify it in place to avoid making the checkout dirty @@ -45,16 +48,16 @@ # to contain the tarball. This needs to never change. # build/${FLATPAK_MODULE}/ is a symlink to -2 atm thankfully as well. - >- - flatpak-builder --user --keep-build-dirs --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} --disable-download --disable-updates flatpak_app ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH} <