15 lines
189 B
Bash
15 lines
189 B
Bash
|
appendpath () {
|
||
|
case ":$PATH:" in
|
||
|
*:"$1":*)
|
||
|
;;
|
||
|
*)
|
||
|
PATH="${PATH:+$PATH:}$1"
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
appendpath '/@PREFIX@/bin'
|
||
|
|
||
|
unset appendpath
|
||
|
|
||
|
export PATH
|