diff options
author | Roy Marples <roy@marples.name> | 2008-03-02 21:14:01 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-02 21:14:01 +0000 |
commit | 67c5fd6bb8f1d489f7dd012a63a370f20fbe02da (patch) | |
tree | cf413352b5ec98209db226158b2a5113ce14936c /sh/functions.sh.in | |
parent | a12dbdc6c93a7d63591610378e3e570b7c7d2143 (diff) |
Ensure that our scripts call prefixed runscript.
Diffstat (limited to 'sh/functions.sh.in')
-rw-r--r-- | sh/functions.sh.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/functions.sh.in b/sh/functions.sh.in index 16e36963..b8d3c95d 100644 --- a/sh/functions.sh.in +++ b/sh/functions.sh.in @@ -43,8 +43,8 @@ _sanitize_path() local IFS=":" p= path= for p in ${PATH}; do case "${p}" in - @PREFIX@/lib/rc/sbin|/bin|/sbin|/usr/bin|/usr/sbin|@PKG_PREFIX@/bin|@PKG_PREFIX@/sbin);; - *) path="${path}:${p}";; + @PREFIX@/lib/rc/sbin|@PREFIX@/bin|@PREFIX@/sbin|/usr/bin|/usr/sbin|@PKG_PREFIX@/bin|@PKG_PREFIX@/sbin);; + *) path="${path}${path:+:}${p}";; esac done @@ -60,7 +60,7 @@ if [ -n "${ZSH_VERSION}" ]; then fi # Add our bin to $PATH -export PATH="@PREFIX@/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:@PKG_PREFIX@/bin:@PKG_PREFIX@/sbin:$(_sanitize_path "${PATH}")" +export PATH="@PREFIX@/lib/rc/bin:@PREFIX@/bin:@PREFIX@/sbin:/usr/bin:/usr/sbin:@PKG_PREFIX@/bin:@PKG_PREFIX@/sbin:$(_sanitize_path "${PATH}")" unset _sanitize_path for arg; do |