diff options
| -rw-r--r-- | scripts/phpize.in | 6 | 
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  } | 
