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.

12 lines
472 B

MIAOU_BASH_DIR=/opt/miaou-bash
export MIAOU_BASH_DIR
# useful when MIAOU_BASH_MODE=hosted/containerized
if [[ -f /var/lib/miaou-bash/semver_current ]]; then
container_version=$(</var/lib/miaou-bash/semver_current)
host_version=$(<"$MIAOU_BASH_DIR"/.semver_git_tag)
if [[ "$container_version" != "$host_version" ]]; then
echo "MIAOU-BASH: initiate new version: $host_version (CTRL+C to bypass)"
sudo -E miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
fi
fi