@@ -13,8 +13,8 @@ source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.config.sh"
1313
1414sectionHeader " Checking TYPO3 installation ..."
1515
16- if [ ! -d " $TYPO3_DIR /fileadmin" -o ! -d " $TYPO3_DIR /typo3conf/ext/" ]; then
17- errorMsg " Either $TYPO3_DIR /fileadmin or $TYPO3_DIR /typo3conf/ext/ doesn't exists"
16+ if [ ! -d " $CODE_DIR /fileadmin" -o ! -d " $CODE_DIR /typo3conf/ext/" ]; then
17+ errorMsg " Either $CODE_DIR /fileadmin or $CODE_DIR /typo3conf/ext/ doesn't exists"
1818 exit 1
1919fi
2020
2424
2525sectionHeader " Checking for composer.json ..."
2626
27- if [ -f " htdocs /composer.json" ]; then
27+ if [ -f " $CODE_DIR /composer.json" ]; then
2828 # Install composer
29- execInDir " $TYPO3_DIR " " composer install --no-dev --no-interaction"
29+ execInDir " $CODE_DIR " " composer install --no-dev --no-interaction"
3030fi
3131
3232# ######################################
3535
3636sectionHeader " Checking for bower.json ..."
3737
38- find " $TYPO3_DIR /fileadmin" " $TYPO3_DIR /typo3conf/ext/" -type f -name ' bower.json' | while read FILE; do
38+ find " $CODE_DIR /fileadmin" " $CODE_DIR /typo3conf/ext/" -type f -name ' bower.json' | while read FILE; do
3939 BOWER_JSON_DIR=$( dirname $( $READLINK -f " $FILE " ) )
4040
4141 execInDir " $BOWER_JSON_DIR " " bower install --silent"
4848
4949sectionHeader " Checking for package.json (npm) ..."
5050
51- find " $TYPO3_DIR /fileadmin" " $TYPO3_DIR /typo3conf/ext/" -type f -name ' package.json' | while read FILE; do
51+ find " $CODE_DIR /fileadmin" " $CODE_DIR /typo3conf/ext/" -type f -name ' package.json' | while read FILE; do
5252 PACKAGE_JSON_DIR=$( dirname $( $READLINK -f " $FILE " ) )
5353
5454 if [ ! -d " $PACKAGE_JSON_DIR /node_modules/" -a -n " ` which npm-cache` " ]; then
6666
6767sectionHeader " Checking for gulpfile.js in T3 Root ..."
6868
69- if [ -f " $TYPO3_DIR \gulpfile.js" ]; then
70- execInDir " $TYPO3_DIR " " gulp deploy"
69+ if [ -f " $CODE_DIR \gulpfile.js" ]; then
70+ execInDir " $CODE_DIR " " gulp deploy"
7171fi
0 commit comments