Skip to content

Commit ae162a0

Browse files
committed
fixed checking of downloaded php source archive
1 parent fc3480a commit ae162a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/core.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ php_band_check_for_source() {
140140
log_info "Attempting to download from $host"
141141
$WGET_BIN -P "$PHP_BAND_ARCH_DIR" -O "$srcfile" "$host"
142142
if [ -f "$srcfile" ]; then
143-
if $TAR_BIN -tf "$srcfile" ; then
143+
$TAR_BIN -tf "$srcfile" 2>&1 > /dev/null
144+
if [ $? -ne 0 ]; then
144145
rm "$srcfile"
145146
fi
146147
fi

0 commit comments

Comments
 (0)