From: Ruben Kerkhof Date: Sat, 24 Feb 2018 10:03:10 +0000 (+0100) Subject: build.sh: use consistent indentation X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=caf8a67c62e6b12ac21561f036703e06741cac04;hp=ed1dae66a930598319e7c16405ff36b1229c3c36 build.sh: use consistent indentation --- diff --git a/build.sh b/build.sh index 97e55d85..c92bc4ae 100755 --- a/build.sh +++ b/build.sh @@ -1,21 +1,21 @@ -#! /bin/sh +#!/bin/sh GLOBAL_ERROR_INDICATOR=0 check_for_application () { - for PROG in "$@" - do - which "$PROG" >/dev/null 2>&1 - if test $? -ne 0; then - cat >&2 </dev/null 2>&1 + if test $? -ne 0; then + cat >&2 </dev/null 2>/dev/null if test $? -eq 0 then - libtoolize=libtoolize + libtoolize=libtoolize else - glibtoolize --version >/dev/null 2>/dev/null - if test $? -eq 0 - then - libtoolize=glibtoolize - else - cat >&2 </dev/null 2>/dev/null + if test $? -eq 0 + then + libtoolize=glibtoolize + else + cat >&2 <