Skip to content

Commit

Permalink
Repair commenting out pre-4.0 sct settings. (#3805)
Browse files Browse the repository at this point in the history
This was inadvertently broken in #3591.

Fixes #3804

Co-authored-by: Joshua Newton <joshuacwnewton@gmail.com>
  • Loading branch information
kousu and joshuacwnewton committed Jun 2, 2022
1 parent ca5e661 commit 7f58d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_sct
Expand Up @@ -717,7 +717,7 @@ conda deactivate >/dev/null 2>&1
if [[ -e "$RC_FILE_PATH" ]]; then
if grep "sct_env" "$RC_FILE_PATH"; then
print info "In case an old version SCT is already installed (4.0.0-beta.1 or before), remove 'sct_env' declaration in RC file"
perl -pi -e '/sct_env/ s/^#*/#/' "$RC_FILE_PATH"
perl -pi -e 's/^(# )?(.*bin/sct_env)/# \2/' "$RC_FILE_PATH"
fi
if grep "^export MPLBACKEND=Agg" "$RC_FILE_PATH"; then
print info "Commenting out 'export MPLBACKEND=Agg' from previous SCT installation"
Expand Down

0 comments on commit 7f58d42

Please sign in to comment.