From bfe8bb6a348b8c6c4551e83fcb49a61cf26ebc0f Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Tue, 30 Dec 2025 01:32:10 +0900 Subject: Fix .profile If $SHELL is /usr/bin/bash previous .profile script fails --- public/.profile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'public/.profile') diff --git a/public/.profile b/public/.profile index 956694c..0f2670d 100644 --- a/public/.profile +++ b/public/.profile @@ -6,7 +6,5 @@ # for ssh logins, install and configure the libpam-umask package. #umask 022 -# if bash -if [ "$SHELL" = "/bin/bash" ]; then - . ~/.bashrc -fi +# if running bash +[ -n "$BASH_VERSION" ] && [ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc" -- cgit v1.2.3