Commit a349ab27 authored by Dom Lachowicz's avatar Dom Lachowicz

use head -n 1 instead -f head -1

parent 3f6bbdaa
......@@ -84,7 +84,7 @@ version_check() {
for checkprog in $checkprogs; do
echo -n " testing $checkprog... "
if $checkprog --version < /dev/null > /dev/null 2>&1; then
actual_version=`$checkprog --version | head -1 | \
actual_version=`$checkprog --version | head -n 1 | \
sed 's/^.*[ ]\([0-9.]*[a-z]*\).*$/\1/'`
if compare_versions $min_version $actual_version; then
echo "found."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment