From abbb283dbe69d1e126a8bf41141c517cdda0d488 Mon Sep 17 00:00:00 2001 From: Arcitec <38923130+Arcitec@users.noreply.github.com> Date: Sat, 13 May 2023 02:11:28 +0200 Subject: [PATCH] fix: improve "yq" arguments in justfile No more pipe redirection. We tell yq to read the file itself. And we use `--` to ensure it never interprets files as flags. --- usr/share/ublue-os/just/justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/share/ublue-os/just/justfile b/usr/share/ublue-os/just/justfile index c788ce03e0..ace8d27a42 100644 --- a/usr/share/ublue-os/just/justfile +++ b/usr/share/ublue-os/just/justfile @@ -26,7 +26,7 @@ distrobox-ubuntu: setup-flatpaks: #!/usr/bin/env bash echo 'Installing flatpaks from the ublue recipe ...' - flatpaks=$(yq '.flatpaks[]' < /usr/share/ublue-os/recipe.yml) + flatpaks=$(yq -- '.firstboot.flatpaks[]' "/usr/share/ublue-os/recipe.yml") for pkg in $flatpaks; do \ echo "Installing: ${pkg}" && \ flatpak install --user --noninteractive flathub $pkg; \