Skip to content

Commit

Permalink
avoid stat problem in cp calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Jun 16, 2020
1 parent 3a4f3b8 commit f4c1fdd
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DB_NAME=${11:-zikula}

TOOLS=${12:-default}
if [ "$TOOLS" = "default" ]; then
TOOLS=',phplint,parallel-lint,lint:container,lint:yaml,lint:twig,translations,doctrine-info,phpcs,php-cs-fixer,phpunit-bridge,security-checker,churn,phploc,phpmetrics,php-coupling-detector,deprecation-detector,phpinsights,'
TOOLS=',phplint,parallel-lint,lint:container,lint:yaml,lint:twig,translations,doctrine-info,phpcs,php-cs-fixer,phpunit-bridge,security-checker,churn,phploc,phpmetrics,php-coupling-detector,deprecation-detector,'
fi

# echo "Vendor: ${VENDOR_NAME}"
Expand All @@ -45,8 +45,8 @@ if [ "$CORE" != "ZK30" ] && [ "$CORE" != "ZK3DEV" ]; then
EXTENSION_FOLDER="modules"
fi
MODULE_PATH="${BASE_DIR}${EXTENSION_FOLDER}/${VENDOR_NAME}/${MODULE_NAME}Module"
LC_MODULE="$( echo "${MODULE_NAME}" | tr -s '[:upper:]' '[:lower:]' )"
LC_APP="$( echo "${APP_NAME}" | tr -s '[:upper:]' '[:lower:]' )"
LC_MODULE="$( echo "${MODULE_NAME}" | tr '[:upper:]' '[:lower:]' )"
LC_APP="$( echo "${APP_NAME}" | tr '[:upper:]' '[:lower:]' )"
TOOL_BIN_PATH="/tools/"
TOOL_CONFIG_PATH="/tool-config/"

Expand Down Expand Up @@ -336,18 +336,14 @@ if [ "$CREATE_ARTIFACTS" = true ]; then
rm -Rf .github

MODULE_PATH="${BASE_DIR}${EXTENSION_FOLDER}/${VENDOR_NAME}/${MODULE_NAME}Module"
echo "M: ${MODULE_PATH}"
ls -l

if [ "$CORE" = "ZK30" ] || [ "$CORE" = "ZK3DEV" ]; then
echo "A: public/overrides/${LC_APP}"
if [ -d "public/overrides/${LC_APP}" ]; then
echo "public/overrides/${LC_APP}/* --> ${MODULE_PATH}/Resources/public/"
cp -R "public/overrides/${LC_APP}/*" "${MODULE_PATH}/Resources/public/"
cp -R "public/overrides/${LC_APP}/"* "${MODULE_PATH}/Resources/public/"
rm -rf "public"
fi
if [ -d "templates/bundles/${APP_NAME}" ]; then
echo "templates/bundles/${APP_NAME}/* --> ${MODULE_PATH}/Resources/views/"
cp -R "templates/bundles/${APP_NAME}/*" "${MODULE_PATH}/Resources/views/"
cp -R "templates/bundles/${APP_NAME}/"* "${MODULE_PATH}/Resources/views/"
rm -rf "templates"
fi
if [ -f "README.md" ]; then
Expand Down

0 comments on commit f4c1fdd

Please sign in to comment.