penguin/utils

my env utils

commit 1facc5d6985d417fda589962485a60e3e69decf1

author斟酌 鵬兄 <tgckpg@gmail.com>
date2022-08-11T16:03:25Z
subjectNeed to remove sources dir
commit 1facc5d6985d417fda589962485a60e3e69decf1
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2022-08-11T16:03:25Z

    Need to remove sources dir
---
 bash/bashrc/rbashrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 393808b..1b04be6 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -243,7 +243,7 @@ function r2ensource {
 		echo "Enabling $_id"
 	done
 	sort $_tmp > "$RBASH_CONFIG"
-	rm $_tmp "$RBASH_MERGED"
+	rm -r "$_tmp" "$RBASH_SOURCES"
 }
 
 function r2dissource {
@@ -270,7 +270,7 @@ function r2dissource {
 	_dis=$( mktemp )
 	sh -c "grep -v $_opts \"$RBASH_CONFIG\"" > $_dis
 	sort $_dis > $RBASH_CONFIG
-	rm $_dis "$RBASH_MERGED"
+	rm -r "$_dis" "$RBASH_SOURCES"
 }
 
 export PS1='This is <MACHINE_NAME>\e[1;3<COLOR_CODE>m<MACHINE_COLORED_NAME>\e[0m: \w\n\$ '