pvincent 4 days ago
parent
commit
3c9a044160
  1. 3
      lib/self-upgrade.bash

3
lib/self-upgrade.bash

@ -13,9 +13,10 @@ latest=$("$MIAOU_BASH_DIR/tools/wget_semver" artcode miaou/miaou-bash)
if [[ "$current" == "$latest" ]]; then if [[ "$current" == "$latest" ]]; then
echo "up-to-date version: $current" echo "up-to-date version: $current"
OLD_DIR="$MIAOU_BASH_DIR"
export -n MIAOU_BASH_DIR export -n MIAOU_BASH_DIR
unset MIAOU_BASH_DIR unset MIAOU_BASH_DIR
source ../install.sh
source "$OLD_DIR/install.sh"
else else
MIAOU_BASH_DIR='' source ../install.sh MIAOU_BASH_DIR='' source ../install.sh
fi fi
Loading…
Cancel
Save