mrrl-system-config

system configuration on top of MRRL
git clone https://ccx.te2000.cz/git/mrrl-system-config
Log | Files | Refs

commit d394bb97f0ed2aa62395bd6323bd474df8721285
parent cc138b116a98608ee4543d3fa514f4e36a64c8b6
Author: ccx <ccx@te2000.cz>
Date:   Tue, 23 Apr 2024 21:53:27 +0000

Append /run/current/command to PATH in profile instead of prepending

Diffstat:
Mconfig/etc/profile.d/run_current_command.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/etc/profile.d/run_current_command.sh b/config/etc/profile.d/run_current_command.sh @@ -1,8 +1,8 @@ -# prepend /command to $PATH if not already present +# append /run/current/command to $PATH if not already present case ":$PATH:" in *:"/run/current/command":*) ;; *) - PATH="/run/current/command${PATH:+:$PATH}" + PATH="${PATH:+$PATH:}/run/current/command" ;; esac