fix miaou-bash helper

This commit is contained in:
pvincent
2026-08-23 17:38:37 +04:00
parent a5c682a9ea
commit bcc88406e7
2 changed files with 2 additions and 7 deletions
+1 -7
View File
@@ -3,11 +3,5 @@ export MIAOU_BASH_DIR
# useful when MIAOU_BASH_MODE=hosted/containerized # useful when MIAOU_BASH_MODE=hosted/containerized
if [[ -f /var/lib/miaou-bash/semver_current ]]; then if [[ -f /var/lib/miaou-bash/semver_current ]]; then
container_version=$(</var/lib/miaou-bash/semver_current) "$MIAOU_BASH_DIR"/bin/miaou-bash "$MIAOU_BASH_DIR"/lib/container-upgrade.bash
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 fi
+1
View File
@@ -5,6 +5,7 @@ INSTALL_URL='https://git.artcode.re/miaou/miaou-bash/raw/branch/main/install.sh'
# FUNCTIONS # FUNCTIONS
function container_upgrade { function container_upgrade {
echo "MIAOU_BASH_MODE=$MIAOU_BASH_MODE"
. "$MIAOU_BASH_DIR"/lib/container-upgrade.bash . "$MIAOU_BASH_DIR"/lib/container-upgrade.bash
} }