Fixed rbash_upgrade not working on other dirs

This commit is contained in:
斟酌 鵬兄 2022-08-10 13:26:23 +08:00
parent e53c7a64f6
commit 177913a954

View File

@ -5,10 +5,6 @@ case $- in
esac
__SCRIPT=$BASH_SOURCE
echo $BASH_SOURCE | grep -q "^$( pwd )"
if [ $? -ne 0 ]; then
__SCRIPT=$( pwd )/$BASH_SOURCE
fi
# Source global definitions
if [ -f /etc/bashrc ]; then