Commit 051a2c27 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Reorder PATH in manage_path

parent c648baf5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -35,9 +35,7 @@ manage_path()
{
	local var="$1" val="$2"; shift 2
	eval local cur=\$$var
	case ":$cur:" in
		*:$val:*) return ;;
	esac
	local cur=`echo $cur | sed -E 's!(^|:)'"$val"'(:|$)!\1\2!;s!^:|:$!!;s!::!:!'`
	local pre="$cur" post=
	while [ $# -gt 0 ]; do
		case "$1" in