From d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 1 Aug 2018 22:09:49 -0500 Subject: /etc/profile: REALLY support other shells this time --- tree/etc/profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tree/etc/profile') diff --git a/tree/etc/profile b/tree/etc/profile index f96461b..dcf6020 100644 --- a/tree/etc/profile +++ b/tree/etc/profile @@ -2,9 +2,9 @@ [ -x /usr/bin/less ] && export PAGER=${PAGER:-/usr/bin/less} -# Support for user/mksh as /bin/sh -if [ -z $UID -a -n $USER_ID ]; then - UID=$USER_ID +# Support for other shells +if [ -z $UID ]; then + UID=$(id -u) fi -- cgit v1.2.3-70-g09d2