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
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
|