diff options
Diffstat (limited to 'tree')
-rw-r--r-- | tree/etc/profile | 6 |
1 files changed, 3 insertions, 3 deletions
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 |