diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2019-08-15 15:10:54 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2019-10-08 14:20:29 +0800 |
commit | 6f23e17e3203cd8cc064f83d7b8398f61dad42bb (patch) | |
tree | 069c80a7c8e1a4326e235833ed7c1ba971384b19 /utils | |
parent | 514a9a1ab0d9de6bffb4398b6202b100401263b4 (diff) | |
download | talos-petitboot-6f23e17e3203cd8cc064f83d7b8398f61dad42bb.tar.gz talos-petitboot-6f23e17e3203cd8cc064f83d7b8398f61dad42bb.zip |
pb-console: don't modify PATH unless it's empty
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>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/pb-console | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/pb-console b/utils/pb-console index 8245b33..012d242 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -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 |