This commit is contained in:
Jephté Clain 2014-11-19 15:25:55 +04:00
parent c3662082e4
commit b5ea2c0c72
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ elif [ "$CMD" == clone ]; then
[ -n "$repourl" ] || die "Vous devez spécifier l'url du dépôt git"
destdir="$2"
[ -n "$destdir" ] || setx destdir=basename -- "$destdir"
[ -n "$destdir" ] || setx destdir=basename -- "$repourl"
[ -d "$destdir" ] && die "$(ppath "$destdir"): répertoire existant"
git clone "$repourl" "$destdir" || die
@ -228,7 +228,7 @@ elif [ "$CMD" == crone ]; then
[ -n "$repourl" ] || die "Vous devez spécifier l'url du dépôt git"
destdir="$2"
[ -n "$destdir" ] || setx destdir=basename -- "$destdir"
[ -n "$destdir" ] || setx destdir=basename -- "$repourl"
[ -d "$destdir" ] && die "$(ppath "$destdir"): répertoire existant"
splitfsep "$repourl" : userhost path