commit d259194c8275f15585189d90ef41d6685eb16da4
parent da179088ee1e687d154e60342cefb6c6080fcc15
Author: David Goulet <dgoulet@torproject.org>
Date: Wed, 20 Feb 2019 12:09:52 -0500
Merge branch 'tor-github/pr/658'
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git 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
diff --git a/changes/ticket26069 b/changes/ticket26069
@@ -0,0 +1,2 @@
+ o Code simplification and refactoring (shell scripts):
+ - Cleanup autogen.sh to silence shellcheck warnings. Closes ticket 26069.