prepend PATH instead of appending

This commit is contained in:
fanyx 2023-09-15 10:57:58 +02:00
parent 8b0f506f0b
commit ffc77f8a9c
1 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,6 @@ for x in \
[ -d "$x" ] || continue
case ":${PATH}:" in
*":${x}:"*) ;;
*) PATH="${PATH:+$PATH:}${x}" ;;
*) PATH="${x:+$x:}${PATH}" ;;
esac
done