From 2c94e0c54cacc27811e9e42f66360680c8ff476c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 3 Oct 2014 20:19:10 +0200 Subject: add /usr/local/games to the PATH in /etc/profile --- NEWS | 4 ++++ profile | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index f236d1c..995640b 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +2014-10-03 RĂ©mi Verschelde 2.7.21 + + * add /usr/local/games to the PATH in /etc/profile + 2012-03-15 Kamil Rytarowski 2.7.20 * remove run-parts from this package, it's packaged separately diff --git a/profile b/profile index dd4af62..249b1cb 100644 --- a/profile +++ b/profile @@ -3,8 +3,13 @@ loginsh=1 -if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then - PATH=$PATH:/usr/games +if [ "$UID" -ge 500 ] ; then + if ! echo ${PATH} |grep -q /usr/local/games ; then + PATH=$PATH:/usr/local/games + fi + if ! echo ${PATH} |grep -q /usr/games ; then + PATH=$PATH:/usr/games + fi fi umask 022 -- cgit v1.2.1