commit 177913a9548ebcf2ce87f4c0ffbf7e5e761478e0
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2022-08-10T05:26:23Z |
| subject | Fixed rbash_upgrade not working on other dirs |
commit 177913a9548ebcf2ce87f4c0ffbf7e5e761478e0
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2022-08-10T05:26:23Z
Fixed rbash_upgrade not working on other dirs
---
bash/bashrc/rbashrc | 4 ----
1 file changed, 4 deletions(-)
diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 45cc0c1..a08716f 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -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