Skip to content

Commit bf941d0

Browse files
authored
Merge pull request #10925 from BettyFromHH/scripts/style-to-repo/release10/build-script-fix2
Fix copying the image for mail template.
2 parents 85b7e2b + e571232 commit bf941d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/Style-To-Repo/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ function build() {
4141
cp -r "${DEFAULT_TEMPLATE_FOLDER}"/*.html "${BUILD_BASE_FOLDER}"/"${NAME}" &> /dev/null
4242
done
4343

44-
if [[ -d ./components/ILIAS/Mail/templates/default/img && -d "${BUILD_BASE_FOLDER}"/Mail ]]
45-
then
46-
cp -r ./components/ILIAS/Mail/templates/default/img "${BUILD_BASE_FOLDER}"/Mail &> /dev/null
44+
if [[ -d "./components/ILIAS/Mail/templates/default/img" && -d "${BUILD_BASE_FOLDER}/components/ILIAS/Mail" ]]; then
45+
cp -r "./components/ILIAS/Mail/templates/default/img" "${BUILD_BASE_FOLDER}/components/ILIAS/Mail" &> /dev/null
4746
fi
4847

4948
mv ${BUILD_BASE_FOLDER}/delos/template.xml ${BUILD_BASE_FOLDER}/template.xml

0 commit comments

Comments
 (0)