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.
This commit is contained in:
Arcitec
2023-05-13 02:11:28 +02:00
committed by Eino Rauhala
parent 63a5e3583b
commit abbb283dbe

View File

@@ -26,7 +26,7 @@ distrobox-ubuntu:
setup-flatpaks: setup-flatpaks:
#!/usr/bin/env bash #!/usr/bin/env bash
echo 'Installing flatpaks from the ublue recipe ...' 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 \ for pkg in $flatpaks; do \
echo "Installing: ${pkg}" && \ echo "Installing: ${pkg}" && \
flatpak install --user --noninteractive flathub $pkg; \ flatpak install --user --noninteractive flathub $pkg; \