Skip to content

Commit

Permalink
BUGFIX: Improperly parsing keys from yaml file
Browse files Browse the repository at this point in the history
Problem:
Was not piping to @sh when using yq to get pypi and aur groups

Solution:
Piped to @sh
  • Loading branch information
CaderIdris committed Jan 22, 2025
1 parent 532aece commit 5515924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/tmp/scripts/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ done
echo "npm packages installed"
echo "---"

PYPI_PKG_GROUPS=$(yq -r '.pypi | keys' $PKGS_YML_PATH)
PYPI_PKG_GROUPS=$(yq -r '.pypi | keys | @sh' $PKGS_YML_PATH)
for grp in $PYPI_PKG_GROUPS
do
echo "Group: ${grp}"
Expand All @@ -40,7 +40,7 @@ done
echo "PyPI packages installed"
echo "---"

AUR_PKG_GROUPS=$(yq -r '.aur | keys' $PKGS_YML_PATH)
AUR_PKG_GROUPS=$(yq -r '.aur | keys | @sh' $PKGS_YML_PATH)
# Create temporary build user to install yay
echo "Setting up build user"
cp /etc/sudoers /etc/sudoers.bak
Expand Down

0 comments on commit 5515924

Please sign in to comment.