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