latest to support taas shells

This commit is contained in:
Kenji Morishige
2026-02-25 15:20:07 -06:00
parent d25dac1897
commit b23f5d7e5f
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ _is_work_host() {
[[ "${MACHINE_PROFILE:-}" == "work" ]] && return 0 [[ "${MACHINE_PROFILE:-}" == "work" ]] && return 0
# Fallback hostname pattern for work servers where .bashrc.local may not exist # Fallback hostname pattern for work servers where .bashrc.local may not exist
case "$(hostname -s)" in case "$(hostname -s)" in
kenjim-mbp*|etqc-*|etbg-*|engtech-dev-*|qnc-kenjim-toby-shell*|qtaas*|bng-kenjim-toby-shell*|btaas*) return 0 ;; kenjim-mbp*|etqc-*|etbg-*|engtech-dev-*|qnc-kenjim-toby-shell*|qtaas*|bng-kenjim-toby-shell*|btaas*|kenjim-taas*) return 0 ;;
*) return 1 ;; *) return 1 ;;
esac esac
} }

View File

@@ -192,7 +192,7 @@ echo "✅ .bashrc.local written for profile: $MACHINE_PROFILE"
if [[ "$MACHINE_PROFILE" == "work" ]]; then if [[ "$MACHINE_PROFILE" == "work" ]]; then
_is_nfs_home=false _is_nfs_home=false
case "$(hostname -s)" in case "$(hostname -s)" in
etqc-*|etbg-*|engtech-dev-*|qnc-kenjim-toby-shell*|qtaas*|bng-kenjim-toby-shell*|btaas*) etqc-*|etbg-*|engtech-dev-*|qnc-kenjim-toby-shell*|qtaas*|bng-kenjim-toby-shell*|btaas*|kenjim-taas*)
if df -P "$HOME" 2>/dev/null | tail -1 | grep -qE ':|nfs'; then if df -P "$HOME" 2>/dev/null | tail -1 | grep -qE ':|nfs'; then
_is_nfs_home=true _is_nfs_home=true
elif mount | grep -q "on ${HOME%%/} .*type nfs"; then elif mount | grep -q "on ${HOME%%/} .*type nfs"; then