catalyst-auto: automatically calculate REPO_DIR

Rather than hardcode it to a path that works on only a few systems,
switch it to the dynamic calculation like we use for GITDIR.
This commit is contained in:
Mike Frysinger 2016-05-19 22:16:14 -04:00
parent 1294da6932
commit 170331ecea
2 changed files with 3 additions and 3 deletions

View file

@ -159,8 +159,9 @@ if [[ -n ${lock_file} ]]; then
fi
fi
# Probe the default gitdir from this script name.
GITDIR=$(dirname "$(dirname "$(realpath "$0")")")
# Probe the default source dir from this script name.
REPO_DIR=$(dirname "$(dirname "$(realpath "$0")")")
GITDIR=${REPO_DIR}
# Set up defaults that config files can override if they want.
SUBARCH=$(uname -m)