Browse Source

initiate new version

main
pvincent 2 weeks ago
parent
commit
427993b807
  1. 3
      etc/profile.d/20-miaou-bash.sh

3
etc/profile.d/20-miaou-bash.sh

@ -6,7 +6,8 @@ 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)"
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
Loading…
Cancel
Save