From 556db65251de359c6abf1974091f095bc8e7ba0a Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Wed, 5 Dec 2018 14:05:57 -0600 Subject: [PATCH] Add warning about --infra flag (fixes #383) --- prepare-vms/lib/cli.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prepare-vms/lib/cli.sh b/prepare-vms/lib/cli.sh index 47e86e80..acb65fb1 100644 --- a/prepare-vms/lib/cli.sh +++ b/prepare-vms/lib/cli.sh @@ -54,6 +54,9 @@ need_infra() { if [ -z "$1" ]; then die "Please specify infrastructure file. (e.g.: infra/aws)" fi + if [ "$1" = "--infra" ]; then + die "The infrastructure file should be passed directly to this command. Remove '--infra' and try again." + fi if [ ! -f "$1" ]; then die "Infrastructure file $1 doesn't exist." fi