From 6a521dc626557828c2a7ddceba215e8770f846ad Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 23 Aug 2026 17:22:59 +0400 Subject: [PATCH] fix miaou-bash helper --- etc/bash.bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/bash.bashrc b/etc/bash.bashrc index 4479187..a294542 100644 --- a/etc/bash.bashrc +++ b/etc/bash.bashrc @@ -209,12 +209,15 @@ alias ssu='ss -tupn' # the miaou-bash helper function function miaou-bash { - if "$MIAOU_BASH_DIR"/bin/miaou-bash "$@"; then + "$MIAOU_BASH_DIR"/bin/miaou-bash "$@" + local code=$? + if [[ "$code" == 0 ]]; then if [[ "${1:-}" =~ --self-upgrade|--uninstall ]]; then echo 'reloading session now!' exec bash -l fi fi + return $code } # BASH COMPLETIONS