Skip to content

Commit 98f245e

Browse files
author
foobar
committed
Fix cleanup
1 parent 000a9e3 commit 98f245e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/phpize.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ phpize_clean()
3636
{
3737
echo "Cleaning.."
3838
for i in $CLEAN_FILES; do
39-
test -f $i && rm -rf $i
39+
if test -f "$i"; then
40+
rm -f $i
41+
elif test -d "$i"; then
42+
rm -rf $i
43+
fi
4044
done
4145
}
4246

0 commit comments

Comments
 (0)