Merge pull request #89116 from wagdav/fix-args-create-amis

nixos/maintainers/scripts/ec2/create-amis.sh: fix argument check
This commit is contained in:
Lassulus 2020-08-22 16:47:54 +02:00 committed by GitHub
commit d08b81c3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ log() {
echo "$@" >&2
}
if [ -z "$1" ]; then
if [ "$#" -ne 1 ]; then
log "Usage: ./upload-amazon-image.sh IMAGE_OUTPUT"
exit 1
fi