|
|
@ -22,7 +22,6 @@ function self_upgrade { |
|
|
# MAIN |
|
|
# MAIN |
|
|
|
|
|
|
|
|
source "$MIAOU_BASH_DIR"/lib/functions.bash |
|
|
source "$MIAOU_BASH_DIR"/lib/functions.bash |
|
|
sudo_root |
|
|
|
|
|
assert_system_mode |
|
|
assert_system_mode |
|
|
|
|
|
|
|
|
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version) |
|
|
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version) |
|
|
@ -30,5 +29,7 @@ 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" |
|
|
else |
|
|
else |
|
|
|
|
|
echo "new version available: $latest" |
|
|
|
|
|
sudo_root |
|
|
self_upgrade |
|
|
self_upgrade |
|
|
fi |
|
|
fi |