mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 03:19:40 +00:00
Fixed bug with RosBE-rc overriding path. (#14)
Preserved $PATH from being overridden while reading user's bashrc by putting current $PATH in a variable $savedpath and restoring that after sourcing .bashrc Co-authored-by: Colin Finck <colin@reactos.org>
This commit is contained in:
parent
c4fb83d364
commit
7ae7c508e6
@ -1,6 +1,8 @@
|
||||
# extend user's RC file
|
||||
# extend user's RC file, but preserve our already set $PATH variable
|
||||
if [ -f $HOME/.bashrc ]; then
|
||||
savedpath="$PATH"
|
||||
source $HOME/.bashrc
|
||||
export PATH="$savedpath"
|
||||
fi
|
||||
|
||||
# identify us in prompt
|
||||
|
Loading…
Reference in New Issue
Block a user