Skip to content

Commit 5aab12d

Browse files
committed
if string is not null set variable and not the opposite
1 parent 45fccc3 commit 5aab12d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ fi
387387

388388

389389
if find_library "imagequant" "imagequant" "libimagequant.h" "libimagequant.a" "libimagequant.$SOLIBSUFFIX*"; then
390-
if [ -z "$LIBRARY_FOUND_VERSION" ]; then
390+
if [ -n "$LIBRARY_FOUND_VERSION" ]; then
391391
VERSION=$LIBRARY_FOUND_VERSION
392-
elif [ -z "$LIBRARY_FOUND_HEADER" ]; then
392+
elif [ -n "$LIBRARY_FOUND_HEADER" ]; then
393393
VERSION=$(grep LIQ_VERSION_STRING "$LIBRARY_FOUND_HEADER" | grep -Eo "2\.[0-9.]+")
394394
else
395395
VERSION=unknown

0 commit comments

Comments
 (0)