test-install/install: Print usage when run without arguments.

The `-z "$INSTALLER"` was intended to do this -- but we don't get that
far, because the `shift` fails.
This commit is contained in:
Greg Price 2019-01-31 16:15:51 -08:00
parent 2d11e163dd
commit 6613f4c22c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ while true; do
*) usage;;
esac
done
INSTALLER="$1"; shift
INSTALLER="$1"; shift || usage
INSTALLER_ARGS=("$@"); set --
if [ -z "$RELEASE" ] || [ -z "$INSTALLER" ]; then