From 144e07bfe181994e048197119f6cd1456661ddad Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 17 Jul 1996 21:18:58 +0000 Subject: Fixup test and source of user's .root_profile. --- config/root-.profile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'config/root-.profile') diff --git a/config/root-.profile b/config/root-.profile index 5bfd9833..5a2188db 100644 --- a/config/root-.profile +++ b/config/root-.profile @@ -1,7 +1,15 @@ # Execute the user's .root_profile file if it exists rather than this one. -if [ $USER && $USER != root ]; then - . ~USER/.root_profile +case "$USER" in + "" | root) + UHOME="";; + *) + UHOME="`eval echo ~$USER`";; +esac + +if [ "$UHOME" -a -r "$UHOME/.root_profile" ]; then + . "$UHOME/.root_profile" else - export PATH=/sbin:/bin:/local/bin + PATH=/sbin:/bin:/local/bin + export PATH fi -- cgit v1.2.3