Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pixi-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ install_global_packages() {
fi

# Use the existing packages or empty string to compare with desired packages
missing_pkgs=$(comm -13 <(echo "$existing_pkgs" | LC_ALL=C sort -u) <(LC_ALL=C sort -u ${package_list}))
missing_pkgs=$(LC_ALL=C comm -13 <(echo "$existing_pkgs" | LC_ALL=C sort -u) <(LC_ALL=C sort -u ${package_list}))

if (($(echo ${missing_pkgs} | wc -w) > 0 )); then
pixi global install --run-post-link-scripts $(echo ${missing_pkgs} | tr '\n' ' ')
Expand All @@ -44,7 +44,7 @@ inject_packages() {
if [ ! -d ${PIXI_HOME}/envs/${environment} ]; then
missing_pkgs=$(cat ${package_list})
else
missing_pkgs=$(comm -13 <(pixi global list --json --environment ${environment} | jq '.[].dependencies.[].name' | tr -d '"' | LC_ALL=C sort -u) <(LC_ALL=C sort -u ${package_list}))
missing_pkgs=$(LC_ALL=C comm -13 <(pixi global list --json --environment ${environment} | jq '.[].dependencies.[].name' | tr -d '"' | LC_ALL=C sort -u) <(LC_ALL=C sort -u ${package_list}))
fi

if (( $(echo ${missing_pkgs} | wc -w) > 0 )); then
Expand Down
Loading