Commit 139951e5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repo index: fix init with missed dir

parent 5eebc3a9
......@@ -46,7 +46,10 @@ __epm_repoindex_alt()
REPO_DIR="$1"
# TODO: check if we inside arch dir or RPMS.*
[ -n "$REPO_DIR" ] || REPO_DIR="$(pwd)"
[ -d "$REPO_DIR" ] || fatal "Repo dir $REPO_DIR does not exist"
if [ -z "$init" ] ; then
[ -d "$REPO_DIR" ] || fatal "Repo dir $REPO_DIR does not exist"
fi
REPO_NAME="$2"
if [ -z "$REPO_NAME" ] ; then
# default name
......
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