From 90e3dce76c89952494acb05a011a36b52a199b75 Mon Sep 17 00:00:00 2001 From: Daniel Nachun Date: Tue, 8 Sep 2026 14:11:47 -0700 Subject: [PATCH] fix sorting issue --- pixi-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixi-setup.sh b/pixi-setup.sh index 6dcafc3..b5744e6 100755 --- a/pixi-setup.sh +++ b/pixi-setup.sh @@ -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' ' ') @@ -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