Skip to content

Commit

Permalink
Fix PermissionError
Browse files Browse the repository at this point in the history
- shabang line should be /bin/sh
- Allow user's shell to be determined at runtime instead of install time.
  • Loading branch information
mrclary committed Sep 24, 2022
1 parent 1b1ae2c commit 87c8ce3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installers-conda/resources/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ if [[ -e "$app_path" ]]; then

echo "Modifying application executable..."
cat <<EOF > $app_path/Contents/MacOS/__NAME__
#!/bin/bash
eval "\$(/bin/bash -l -c "declare -x")"
eval "\$("$ROOT_PREFIX/_conda.exe" shell.bash activate "$PREFIX")"
#!/bin/sh
eval "\$(\$SHELL -l -c "declare -x")"
eval "\$("$ROOT_PREFIX/_conda.exe" shell.\$(basename \$SHELL) activate "$PREFIX")"
export SPYDER_APP=0
\$(dirname \$BASH_SOURCE)/python $PREFIX/bin/spyder "\$@"
\$(dirname \$BASH_SOURCE)/python \$CONDA_PREFIX/bin/spyder "\$@"
EOF
else
Expand Down

0 comments on commit 87c8ce3

Please sign in to comment.