Commit 813a9a61 authored by Denis Baranov's avatar Denis Baranov

Fix error with empty GITREPODIR

parent 819aeb53
......@@ -292,6 +292,7 @@ if [ -n "$MIGRATEGIRAR" ] ; then
continue
fi
echo "Create gear repo $BASENAME from $PKGNAME in $GITREPODIR"
[ -n "$GITREPODIR" ] || GITREPODIR=$(pwd)
GEARDIR=$GITREPODIR/$BASENAME
test -d "$GEARDIR" && fatal "repo $GEARDIR already exits"
mkdir -p "$GEARDIR" || fatal "can't create dir $GEARDIR"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment