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
469 B
12 lines
469 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 miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
|
|
fi
|
|
fi
|