]> granicus.if.org Git - php/commitdiff
Fix cleanup
authorfoobar <sniper@php.net>
Mon, 8 Aug 2005 16:58:12 +0000 (16:58 +0000)
committerfoobar <sniper@php.net>
Mon, 8 Aug 2005 16:58:12 +0000 (16:58 +0000)
scripts/phpize.in

index ae7ef564867cf416d4bc9e94bd695ed9acabeb2f..eed03fc74e63a4390e5f6f0182fb5d0894287926 100644 (file)
@@ -36,7 +36,11 @@ phpize_clean()
 {
   echo "Cleaning.."
   for i in $CLEAN_FILES; do
-    test -f $i && rm -rf $i
+    if test -f "$i"; then
+      rm -f $i
+    elif test -d "$i"; then
+      rm -rf $i
+    fi
   done
 }