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:
Christopher Waschke 2021-06-24 10:31:32 -07:00 committed by GitHub
parent c4fb83d364
commit 7ae7c508e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 if [ -f $HOME/.bashrc ]; then
savedpath="$PATH"
source $HOME/.bashrc source $HOME/.bashrc
export PATH="$savedpath"
fi fi
# identify us in prompt # identify us in prompt