Ignore configuration files for PHP variables.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-11-07 20:43:19 +01:00
parent ad5d10979d
commit c901bc3b0c

View File

@ -173,7 +173,7 @@ function build_project()
WORKDESK="/tmp/isidore-workdesk" WORKDESK="/tmp/isidore-workdesk"
CFG_HEADER_FILE="$WORKDESK/config-header.php" CFG_HEADER_FILE="$WORKDESK/config-header.php"
mkdir -p $WORKDESK mkdir -p $WORKDESK
for i in $(find site/ -name '*.php') for i in $(find site/ -name '*.php' -not -name '*.cfg.php')
do do
echo "<?php include getcwd() . '/config.php'; ?>" > $CFG_HEADER_FILE echo "<?php include getcwd() . '/config.php'; ?>" > $CFG_HEADER_FILE
mkdir -p $WORKDESK/${i%/*} mkdir -p $WORKDESK/${i%/*}