summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 22:09:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-08-01 22:09:49 -0500
commitd209c20fdc6a3ebc39e178b1973a52c56dd1f5f3 (patch)
treec827339337a154d6e6f9a661c9aa22a73a51e0f9
parent282e88461fab9361ceaf7835b9d35da35ed3b5dd (diff)
downloadadelie-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/profile6
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