Add warning about --infra flag (fixes #383)

This commit is contained in:
Jerome Petazzoni
2018-12-05 14:05:57 -06:00
parent ff781a3065
commit 556db65251

View File

@@ -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