summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-08-08 16:58:12 (GMT)
committerfoobar <sniper@php.net>2005-08-08 16:58:12 (GMT)
commit98f245e5f91b51b051199f91453e2a8998db7c52 (patch)
tree128993224052e7717d03d89fb8c68e1ac78e7fe3 /scripts
parent000a9e30156cd99a7612089dfd1f8799a963132f (diff)
downloadphp-98f245e5f91b51b051199f91453e2a8998db7c52.tar.gz
Fix cleanup
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpize.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/phpize.in b/scripts/phpize.in
index ae7ef56..eed03fc 100644
--- a/scripts/phpize.in
+++ b/scripts/phpize.in
@@ -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
}