diff --git a/srcpkgs/base-files/files/profile b/srcpkgs/base-files/files/profile index 6fd2d93fb21..947aeada566 100644 --- a/srcpkgs/base-files/files/profile +++ b/srcpkgs/base-files/files/profile @@ -2,8 +2,24 @@ # System wide environment and startup programs. +appendpath () { + case ":$PATH:" in + *:"$1":*) + ;; + *) + PATH="${PATH:+$PATH:}$1" + esac +} + # Set our default path (/usr/sbin:/sbin:/bin included for non-Void chroots) -PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin" +appendpath '/usr/local/sbin' +appendpath '/usr/local/bin' +appendpath '/usr/bin' +appendpath '/usr/sbin' +appendpath '/sbin' +appendpath '/bin' +unset appendpath + export PATH # Set default umask diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 9b9fcec8395..18ba0a452ca 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,7 +1,7 @@ # Template file for 'base-files' pkgname=base-files version=0.140 -revision=2 +revision=3 bootstrap=yes depends="xbps-triggers" short_desc="Void Linux base system files"