Commit 328eba37 authored by Marian Heil's avatar Marian Heil

Fix wrong env if base not standard dependency

parent 1b06230f
......@@ -44,10 +44,12 @@ else
declare -n dep_dir=HEPSW_${BASE_NAME^^}_DIR
declare -n dep_name=HEPSW_${BASE_NAME^^}_NAME
base_docker=$(image_name ${BASE_NAME})
sed -i -e "s#SOURCE#SOURCE\nRUN printf \"source ${dep_dir}/${dep_name}dependencies.sh\\\n\" >> HEJ_env.sh#g" \
${TARGET_DOCKER} | exit 2
sed -i -e "s#SOURCE#SOURCE\nRUN printf \"source ${dep_dir}/${dep_name}env.sh\\\n\" >> HEJ_env.sh#g" \
${TARGET_DOCKER} | exit 2
if [[ ${dep_dir} != "" ]]; then
sed -i -e "s#SOURCE#SOURCE\nRUN printf \"source ${dep_dir}/${dep_name}dependencies.sh\\\n\" >> HEJ_env.sh#g" \
${TARGET_DOCKER} | exit 2
sed -i -e "s#SOURCE#SOURCE\nRUN printf \"source ${dep_dir}/${dep_name}env.sh\\\n\" >> HEJ_env.sh#g" \
${TARGET_DOCKER} | exit 2
fi
fi
echo "- Using \"${base_docker}\" as base docker"
sed -i -e "s TEMPLATE_BASE ${base_docker} g" ${TARGET_DOCKER} | exit 2
......
Subproject commit b452d9bbf38c1935d1cdeadd8b132a98453172a5
Subproject commit bbced496a0b0131a184793589c7888aa48c482d3
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