From 33d573907d3ffc790e28102ecac15c3be6a85462 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 21 Jul 2017 13:34:05 -0400 Subject: tools/run-centos: make running with no argument show help. If you ran tools/run-centos without an argument it would fail due to 'set -u' like: ./tools/run-centos: line 266: 1: unbound variable --- tools/run-centos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/run-centos') diff --git a/tools/run-centos b/tools/run-centos index b10e3bc4..d44d5145 100755 --- a/tools/run-centos +++ b/tools/run-centos @@ -262,7 +262,7 @@ main() { return 0 } -if [ "$1" = "prep" ]; then +if [ "${1:-}" = "prep" ]; then shift prep "$@" else -- cgit v1.2.3