From 54e0b26f2fb9e1829941b12daf372cf0619682e5 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Tue, 12 Dec 2017 17:36:49 +0000 Subject: We're just doing rm -r, not rm -rf (to the Portage temporary directory) --- portage-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portage-update.sh b/portage-update.sh index 9a062b8..0a1c807 100755 --- a/portage-update.sh +++ b/portage-update.sh @@ -5,7 +5,7 @@ # ====== EDIT VARIABLES BELOW HERE ====== -# Portage temporary directory to be passed to "rm -rf", if you would like it cleared afterwards (e.g. "/tmp/portage/*") +# Portage temporary directory to be passed to "rm -r", if you would like it cleared afterwards (e.g. "/tmp/portage/*") PORTAGE_TEMP="/var/tmp/portage/*" # Services that are safe to restart if they have deleted files open (e.g. "apache2 sshd vixie-cron") @@ -73,7 +73,7 @@ eclean-dist --destructive || exit 1 # Clear Portage's temporary directory, as defined above echo 'rm -r '"$PORTAGE_TEMP" #rm -r "$PORTAGE_TEMP" || exit 1 -echo "Would do rm -rf $PORTAGE_TEMP here, do not have the balls yet due to rm -rfing a variable" || exit 1 +echo "Would do rm -r $PORTAGE_TEMP here, do not have the balls yet due to rm -ring a variable" || exit 1 # Print disk space echo 'df -H' -- cgit v1.2.3