summaryrefslogtreecommitdiff
path: root/scripts/phpize.in
diff options
context:
space:
mode:
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
}