You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
428 B
21 lines
428 B
#!/usr/bin/env miaou-bash
|
|
|
|
# CONSTANTS
|
|
|
|
# FUNCTIONS
|
|
|
|
# MAIN
|
|
|
|
[[ "$UID" -ne 0 ]] && echo 'root privilege required' && exit 1
|
|
|
|
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"
|
|
export -n MIAOU_BASH_DIR
|
|
unset MIAOU_BASH_DIR
|
|
source ../install.sh
|
|
else
|
|
MIAOU_BASH_DIR='' source ../install.sh
|
|
fi
|