mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[mod] check that a path is passed to create-env
This commit is contained in:
parent
832954fd22
commit
bc8d0c6680
1 changed files with 6 additions and 0 deletions
6
ynh-dev
6
ynh-dev
|
@ -66,6 +66,12 @@ elif [ "$1" = "create-env" ]; then
|
||||||
#Create a development environment
|
#Create a development environment
|
||||||
pwd=`pwd`
|
pwd=`pwd`
|
||||||
|
|
||||||
|
if [ ! "$2" ]
|
||||||
|
then
|
||||||
|
echo "I need a destination folder to create the dev environement"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
[ -e "$2" ] || mkdir -p $2
|
[ -e "$2" ] || mkdir -p $2
|
||||||
cd $2
|
cd $2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue