diff options
author | Scott Moser <smoser@brickies.net> | 2017-07-21 13:34:05 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-07-21 13:34:05 -0400 |
commit | 33d573907d3ffc790e28102ecac15c3be6a85462 (patch) | |
tree | fec00f8e46c8e557b0c40338d73d946ad88713ff /tools/run-centos | |
parent | 42a7b34a12be7b0c43cfe8b94b397794d3e24c94 (diff) | |
download | vyos-cloud-init-33d573907d3ffc790e28102ecac15c3be6a85462.tar.gz vyos-cloud-init-33d573907d3ffc790e28102ecac15c3be6a85462.zip |
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
Diffstat (limited to 'tools/run-centos')
-rwxr-xr-x | tools/run-centos | 2 |
1 files changed, 1 insertions, 1 deletions
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 |