diff --git a/sh/shell/bash.sh b/sh/shell/bash.sh index 3f3287b..20529c0 100644 --- a/sh/shell/bash.sh +++ b/sh/shell/bash.sh @@ -2,8 +2,12 @@ # │ shell │ bash │ # ╰───────┴──────╯ -[ "${RWX_SHELL}" = "bash" ] || - return +# based on currently running shell +case "${RWX_SHELL}" in + "bash") ;; + # skip illegal syntax to come + *) return ;; +esac # shellcheck disable=SC3033 ..() {