MIAOU-BASH is a collection of settings and helpers for leveraging BASH. Developer-friendly, it may be used as solo package with or without the miaou project.
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.

22 lines
446 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"
else
OLD_DIR="$MIAOU_BASH_DIR"
export -n MIAOU_BASH_DIR
unset MIAOU_BASH_DIR
source "$OLD_DIR/install.sh"
miaou-bash --version
fi