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

Commit

Permalink
fix: use yq in setup-flatpaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev committed Mar 4, 2023
1 parent 8b389d5 commit 66d2265
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions etc/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ distrobox-ubuntu:

setup-flatpaks:
echo 'Installing flatpaks from the ublue recipe ...'
flatpaks=$(dasel -f /etc/ublue-recipe.yml -r yaml -w json -s 'flatpaks')
flatpaks_count=$(echo $flatpaks | dasel -r json -s 'len()')
for i in $(seq 0 $(($flatpaks_count-1))); do
pkg=$(echo $flatpaks | dasel -r json "[${i}]" | tr -d '"')
echo "# Installing ${pkg}"
flatpak install --user --noninteractive flathub $pkg
flatpaks=$(yq '.flatpaks[]' < /etc/ublue-recipe.yml)
for pkg in $flatpaks; do \
echo "Installing: ${pkg}" && \
flatpak install --user --noninteractive flathub $pkg; \
done

setup-pwa:
Expand Down

0 comments on commit 66d2265

Please sign in to comment.