.profile: Make POSIX-compliant again
Turns out basic sh can do exactly what I wanted Blessed be the manpages
This commit is contained in:
parent
00a2100047
commit
325f2850f7
4
.profile
4
.profile
@ -43,8 +43,8 @@ for path in $desiredpath; do
|
|||||||
done
|
done
|
||||||
unset IFS
|
unset IFS
|
||||||
# We remove any prepending colons to make it appear neater
|
# We remove any prepending colons to make it appear neater
|
||||||
while [ "${PATH:0:1}" == ":" ]; do
|
while [ "${PATH#:}" != "$PATH" ]; do
|
||||||
PATH="${PATH:1}"
|
PATH="${PATH#:}"
|
||||||
done
|
done
|
||||||
# Then finally set up our path
|
# Then finally set up our path
|
||||||
PATH="$desiredpath:$PATH"
|
PATH="$desiredpath:$PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user