From 88818eacbdcbdd1fddb3452c3eddf8fba3f26e9c Mon Sep 17 00:00:00 2001 From: rl1987 Date: Fri, 18 Jan 2019 13:49:30 +0200 Subject: Cleanup shellcheck warnings in autogen.sh --- autogen.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 276dd4047c..63ef6d49ef 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,9 @@ #!/bin/sh -if [ -x "`which autoreconf 2>/dev/null`" ] ; then +if command -v autoreconf; then opt="-i -f -W all,error" - for i in $@; do + for i in "$@"; do case "$i" in -v) opt="${opt} -v" @@ -11,6 +11,7 @@ if [ -x "`which autoreconf 2>/dev/null`" ] ; then esac done + # shellcheck disable=SC2086 exec autoreconf $opt fi -- cgit v1.2.3-54-g00ecf