summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-07-30 15:21:23 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-07-30 15:21:23 +0100
commitfd8f894830080d466e97b334f8c462dbc8e8baf3 (patch)
treede0b49081a37921176eb9d72e282e95e729e9cf7
parentc6c690b5afca968fb2e87343646f51a13f0c2337 (diff)
downloadfebootstrap-fd8f894830080d466e97b334f8c462dbc8e8baf3.tar.gz
febootstrap-fd8f894830080d466e97b334f8c462dbc8e8baf3.tar.xz
febootstrap-fd8f894830080d466e97b334f8c462dbc8e8baf3.zip
Don't just remove files, wrap the 'rm' command in febootstrap-run wrapper.
-rwxr-xr-xfebootstrap.sh5
1 files changed, 2 insertions, 3 deletions
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