diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/include/common.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/include/common.sh b/scripts/include/common.sh index ae5c64c..e286f5d 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -14,6 +14,10 @@ function common_build_init { export installname=${package} fi + if [[ "${envname}" == "" ]]; then + export envname=${package} + fi + export srcdir=$(realpath "${dir}/../src/${package}") if [ ! -d "${srcdir}" ]; then echo "Error: Package sources directory not exists for package '${package}'." @@ -69,7 +73,7 @@ function common_run_package { function common_use_package { cd "${scriptsdir}" check_error $? - export envfile="../env/run${package}.sh" + export envfile="../env/run${envname}.sh" echo "#!/bin/bash" >"${envfile}" check_error $? echo "" >>"${envfile}" |