This commit is contained in:
pvincent
2026-08-07 00:39:30 +04:00
parent d7961ea34f
commit 4091d2142d
3 changed files with 23 additions and 4 deletions
+10 -2
View File
@@ -6,6 +6,14 @@
# MAIN
[ "$UID" -ne 0 ] && echo 'root privilege required' && exit 1
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1
echo TODO: self-upgrade
current=$(miaou-bash --version)
latest=$("$MIAOU_BASH_DIR/tools/wget_semver" artcode miaou/miaou-bash)
if [[ "$current" == "$latest" ]]; then
echo "up-to-date version: $current"
MIAOU_BASH_DIR='' source ../install.sh
else
MIAOU_BASH_DIR='' source ../install.sh
fi