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 e180c28 commit 6b71c3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moose_uninstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ 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 "/${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}"
fi

0 comments on commit 6b71c3f

Please sign in to comment.