From 0d1de9a2c77798a18f368b80334664f5952684bc Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sun, 17 Dec 2017 16:52:22 -0500 Subject: filesystem-2017.10-2.parabola1: updating version --- libre/filesystem/profile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'libre/filesystem/profile') diff --git a/libre/filesystem/profile b/libre/filesystem/profile index 60c1821dd..f92cf3f74 100644 --- a/libre/filesystem/profile +++ b/libre/filesystem/profile @@ -1,10 +1,23 @@ # /etc/profile -#Set our umask +# Set our umask umask 022 -# Set our default path -PATH="/usr/local/sbin:/usr/local/bin:/usr/bin" +# Append our default paths +appendpath () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="$PATH:$1" + esac +} + +appendpath '/usr/local/sbin' +appendpath '/usr/local/bin' +appendpath '/usr/bin' +unset appendpath + export PATH # Load profiles from /etc/profile.d -- cgit v1.2.3