Don't just remove files, wrap the 'rm' command in febootstrap-run wrapper.
[febootstrap.git] / febootstrap.sh
index 48b8fd9..6b46ed4 100755 (executable)
@@ -240,5 +240,6 @@ fi
 
 # Clean up the yum repository.
 if [ "$clean" = "yes" ]; then
-    rm -rf "$target"/var/cache/yum/febootstrap
+    febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap
+    febootstrap-run "$target" -- rm -rf /var/cache/yum/febootstrap-updates
 fi