MIAOU-BASH is a collection of scripts and configurations designed to enhance your terminal experience. As the name suggests, it is built on Bash and is designed to work on most modern GNU/Linux systems.
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.

14 lines
483 B

function upgrade {
local container_version host_version
container_version=$(</var/lib/miaou-bash/semver_current)
host_version=$(<"$MIAOU_BASH_DIR"/.semver_git_tag)
if [[ "$container_version" != "$host_version" ]]; then
echo -n "MIAOU-BASH: initiate new version: $host_version"
[[ "$UID" -ne 0 ]] && echo " (CTRL+c to bypass)" || echo
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
fi
}
if [[ -f /var/lib/miaou-bash/semver_current ]]; then
upgrade
fi