fix
This commit is contained in:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user