tools-systemd: fix calculation of repo_dir

This commit is contained in:
Anthony G. Basile 2018-03-02 21:45:58 -05:00
parent eaabba1bec
commit f4baf92b9d

View file

@ -13,7 +13,7 @@ prepare_confs() {
local p=$(( s - 1 )) local p=$(( s - 1 ))
[[ $p == 0 ]] && p=3 [[ $p == 0 ]] && p=3
local pstage=stage${p} local pstage=stage${p}
local repo_dir="$( cd "$( dirname ${BASH_SOURCE[0]} )../" && pwd )" local repo_dir="$( dirname $(pwd) )"
local template="stage-all.conf.template" local template="stage-all.conf.template"
# set the template file if stage4 # set the template file if stage4
[[ $s == 4 ]] && template=stage4-amd64.spec [[ $s == 4 ]] && template=stage4-amd64.spec