Skip to content

Commit

Permalink
pb-console: don't modify PATH unless it's empty
Browse files Browse the repository at this point in the history
We're now running pb-console through a proper login shell, so we
shouldn't need to modify PATH, as we expect it to be properly set up by
the shell profile.

This change removes the unconditional PATH modification, so we only set
a basic PATH if it's currently empty.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
  • Loading branch information
jk-ozlabs committed Oct 8, 2019
1 parent 514a9a1 commit 6f23e17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/pb-console
Expand Up @@ -119,10 +119,8 @@ esac
# we may have been run from udev - ensure we have a sensible PATH
if [ -z "$PATH" ]
then
PATH=/usr/bin:/usr/sbin:/bin:/sbin
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
fi
PATH=/var/lib/pb-plugins/bin:$PATH
export PATH

verbose_opt=
if $pb_config debug | grep -q enabled
Expand Down

0 comments on commit 6f23e17

Please sign in to comment.