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.

19 lines
396 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"
MIAOU_BASH_DIR='' source ../install.sh
else
MIAOU_BASH_DIR='' source ../install.sh
fi