diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-01 22:09:49 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-01 22:09:49 -0500 |
commit | d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3 (patch) | |
tree | c827339337a154d6e6f9a661c9aa22a73a51e0f9 | |
parent | 282e88461fab9361ceaf7835b9d35da35ed3b5dd (diff) | |
download | adelie-base-d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3.tar.gz adelie-base-d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3.tar.bz2 adelie-base-d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3.tar.xz adelie-base-d209c20fdc6a3ebc39e178b1973a52c56dd1f5f3.zip |
/etc/profile: REALLY support other shells this time
-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 |