|
|
@ -34,7 +34,9 @@ function system_upgrade { |
|
|
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version) |
|
|
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version) |
|
|
latest=$("$MIAOU_BASH_DIR"/tools/wget_semver artcode miaou/miaou-bash) |
|
|
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 (Ctrl-c to bypass reinitialization)" |
|
|
|
|
|
sudo_root |
|
|
|
|
|
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash |
|
|
else |
|
|
else |
|
|
echo "new version available: $latest" |
|
|
echo "new version available: $latest" |
|
|
#TODO: should download file self-upgrade.bash itself before calling it against |
|
|
#TODO: should download file self-upgrade.bash itself before calling it against |
|
|
|