Skip to content

Commit

Permalink
Fix checking for existence of compress binary.
Browse files Browse the repository at this point in the history
whereis does not return an error if it doesn't find anything, so
look at the whereis output instead.  If there is any, then if found
the executable on the path.
  • Loading branch information
madler committed Jan 23, 2012
1 parent 4c99fe1 commit 06e5422
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 whereis compress > /dev/null; then \
-@if test "`whereis compress`" != ""; 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 06e5422

Please sign in to comment.