self-upgrade reinitialize
This commit is contained in:
@@ -34,7 +34,9 @@ function system_upgrade {
|
||||
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version)
|
||||
latest=$("$MIAOU_BASH_DIR"/tools/wget_semver artcode miaou/miaou-bash)
|
||||
if [[ "$current" == "$latest" ]]; then
|
||||
echo "up-to-date version: $current"
|
||||
echo "up-to-date version: $current (Ctrl-c to bypass reinitialization)"
|
||||
sudo_root
|
||||
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
|
||||
else
|
||||
echo "new version available: $latest"
|
||||
#TODO: should download file self-upgrade.bash itself before calling it against
|
||||
|
||||
Reference in New Issue
Block a user