Skip to content

Commit

Permalink
Fix compress existence check for Linux.
Browse files Browse the repository at this point in the history
The Linux whereis command produces output even if nothing is found.
This patch checks for a path separator character, a slash, in the
output to indicate that something was actually found.
  • Loading branch information
madler committed Feb 12, 2012
1 parent f423736 commit 0d14755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -39,7 +39,7 @@ test: pigz
(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2
(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3
(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4
-@if test "`whereis compress`" != ""; then \
-@if test "`whereis compress | grep /`" != ""; then \
echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
fi
Expand Down

0 comments on commit 0d14755

Please sign in to comment.