Fixed rbash_upgrade not working on other dirs
This commit is contained in:
parent
e53c7a64f6
commit
177913a954
@ -5,10 +5,6 @@ case $- in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
__SCRIPT=$BASH_SOURCE
|
__SCRIPT=$BASH_SOURCE
|
||||||
echo $BASH_SOURCE | grep -q "^$( pwd )"
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
__SCRIPT=$( pwd )/$BASH_SOURCE
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Source global definitions
|
# Source global definitions
|
||||||
if [ -f /etc/bashrc ]; then
|
if [ -f /etc/bashrc ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user