mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Error message instead of putting an invalid name in Vagrantfile (#33)
* Error message instead of putting an invalid name in Vagrantfile * Suggested command doesn't work (#32)
This commit is contained in:
parent
4750098185
commit
0f9812d66d
1 changed files with 5 additions and 1 deletions
4
ynh-dev
4
ynh-dev
|
@ -109,6 +109,10 @@ elif [ "$1" = "create-env" ]; then
|
||||||
## Run a vm and give a prompt ##
|
## Run a vm and give a prompt ##
|
||||||
#################################
|
#################################
|
||||||
elif [ "$1" = "run" ]; then
|
elif [ "$1" = "run" ]; then
|
||||||
|
if [[ $2 == *"-"* ]]; then
|
||||||
|
echo "ERROR: Vagrant virtual machine ($2) cannot contain any dash"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
DOMAIN=$2
|
DOMAIN=$2
|
||||||
VERSION='stable'
|
VERSION='stable'
|
||||||
|
|
Loading…
Add table
Reference in a new issue