Skip to content

Commit

Permalink
Fixed moose_uninstaller.sh to remove env variables
Browse files Browse the repository at this point in the history
Now we use 'sed' instead of 'unset' to remove the env variables related to 'moose' during the uninstall process.

Signed-off-by: nutellaBear <[email protected]>
  • Loading branch information
LalithShiyam committed Jun 27, 2022
1 parent 6b71c3f commit 3727ed9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions moose_uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
BRAIN_DIR="BRAIN_DETECTOR_DIR"
MOOSE_DIR="MOOSE_DIR"
BASH_RC_PATH="$HOME/.bashrc"
sed "/${NNUNET_DIR}/d" "${BASH_RC_PATH}"
sed "/${RESULTS_DIR}/d" "${BASH_RC_PATH}"
sed "/${SIM_SPACE_DIR}/d" "${BASH_RC_PATH}"
sed "/${BRAIN_DIR}/d" "${BASH_RC_PATH}"
sed "/${MOOSE_DIR}/d" "${BASH_RC_PATH}"
sed -i "/${NNUNET_DIR}/d" "${BASH_RC_PATH}"
sed -i "/${RESULTS_DIR}/d" "${BASH_RC_PATH}"
sed -i "/${SIM_SPACE_DIR}/d" "${BASH_RC_PATH}"
sed -i "/${BRAIN_DIR}/d" "${BASH_RC_PATH}"
sed -i "/${MOOSE_DIR}/d" "${BASH_RC_PATH}"
fi

0 comments on commit 3727ed9

Please sign in to comment.