[mod] check that a path is passed to create-env

This commit is contained in:
Laurent Peuch 2016-01-22 20:17:31 +01:00
parent 832954fd22
commit bc8d0c6680

View file

@ -66,6 +66,12 @@ elif [ "$1" = "create-env" ]; then
#Create a development environment
pwd=`pwd`
if [ ! "$2" ]
then
echo "I need a destination folder to create the dev environement"
exit 1
fi
[ -e "$2" ] || mkdir -p $2
cd $2