From d3c0c9d115d0f9ba2370bb3760636ab4d912da66 Mon Sep 17 00:00:00 2001 From: bofdahof <172177156+bofdahof@users.noreply.github.com> Date: Fri, 25 Apr 2025 17:41:52 +1000 Subject: [PATCH] Amend script so that it works on macOS --- contrib/clion/pixi/pixi-default.bash | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/contrib/clion/pixi/pixi-default.bash b/contrib/clion/pixi/pixi-default.bash index b14ef9cd8c..6dc5cabdc8 100755 --- a/contrib/clion/pixi/pixi-default.bash +++ b/contrib/clion/pixi/pixi-default.bash @@ -1,10 +1,7 @@ #!/bin/bash # Change to the directory of this script (any subdirectory in the repository should work) -cd "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" - -# If the line above does not work then try uncommenting the line below and insert the absolute path to your FreeCAD repository -# cd "absolute/path/to/FreeCAD" +cd "$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" &> /dev/null && pwd -P)" # Activate pixi default environment eval "$(pixi shell-hook)"