tools/upgrade: Enable upgrading/(un)installing in the interactive shell process

This commit is contained in:
Koichi Murase
2022-01-12 18:27:18 +09:00
parent 7f420263b2
commit 16712a41c5
7 changed files with 107 additions and 86 deletions

View File

@@ -11,8 +11,8 @@ case $- in
esac
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env OSH="$OSH" DISABLE_UPDATE_PROMPT="$DISABLE_UPDATE_PROMPT" bash -f "$OSH"/tools/check_for_upgrade.sh
if [[ $DISABLE_AUTO_UPDATE != true ]]; then
source "$OSH"/tools/check_for_upgrade.sh
fi
# Initializes Oh My Bash