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:
parent
1294da6932
commit
170331ecea
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue