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.
13 lines
517 B
13 lines
517 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 -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
|
|
fi
|