Clean up after rbash_upgrade

This commit is contained in:
斟酌 鵬兄 2022-08-10 13:19:45 +08:00
parent 7d956b52e7
commit e53c7a64f6

View File

@ -171,6 +171,12 @@ function rbash_upgrade {
$TMPFILE
mv $TMPFILE $__SCRIPT
# Clean up the old dir
if [ $? -eq 0 ] && [ -d "$BASH_SDIR" ]; then
rm -r "$BASH_SDIR"
fi
. $__SCRIPT
}