From: Richard Jones Date: Thu, 30 Jul 2009 14:21:23 +0000 (+0100) Subject: Don't just remove files, wrap the 'rm' command in febootstrap-run wrapper. X-Git-Tag: 2.4~2 X-Git-Url: http://git.annexia.org/?p=febootstrap.git;a=commitdiff_plain;h=fd8f894830080d466e97b334f8c462dbc8e8baf3 Don't just remove files, wrap the 'rm' command in febootstrap-run wrapper. --- diff --git a/febootstrap.sh b/febootstrap.sh index 67687e5..6b46ed4 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -239,8 +239,7 @@ else fi # Clean up the yum repository. -# XXX We shouldn't just rm files. if [ "$clean" = "yes" ]; then - rm -rf "$target"/var/cache/yum/febootstrap - rm -rf "$target"/var/cache/yum/febootstrap-updates + febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap + febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap-updates fi