Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
fix: improve "yq" arguments in justfile
Browse files Browse the repository at this point in the history
No more pipe redirection. We tell yq to read the file itself. And we use `--` to ensure it never interprets files as flags.
  • Loading branch information
Arcitec authored and xynydev committed May 14, 2023
1 parent 63a5e35 commit abbb283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/share/ublue-os/just/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit abbb283

Please sign in to comment.