summaryrefslogtreecommitdiff
path: root/modereset
diff options
context:
space:
mode:
Diffstat (limited to 'modereset')
-rwxr-xr-xmodereset4
1 files changed, 1 insertions, 3 deletions
diff --git a/modereset b/modereset
index b3c8d41..6fad670 100755
--- a/modereset
+++ b/modereset
@@ -2,9 +2,7 @@
reset_current_mode() {
if [ -d /usr/portage/.git ] ; then
- for i in "(ls /usr/portage|grep -v packages|grep -v distfiles)"; do
- rm -rf $i
- done
+ rm -rf /usr/portage/*
rm -rf /usr/portage/.git*
rm /etc/portage/make.conf
rm /etc/portage/make.profile