Skip to content

Commit 4378d55

Browse files
author
Fabrizio Branca
committed
Added check for patches directory
1 parent d245259 commit 4378d55

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ if [ ! -f 'tools/modman' ] ; then echo "Could not find modman script"; exit 1 ;
4141
if [ ! -d '.modman' ] ; then echo "Could not find .modman directory"; exit 1 ; fi
4242
if [ ! -f '.modman/.basedir' ] ; then echo "Could not find .modman/.basedir"; exit 1 ; fi
4343

44-
if [ -f vendor/aoepeople/magento-deployscripts/apply_patches.sh ] ; then
44+
if [ -d patches ] && [ -f vendor/aoepeople/magento-deployscripts/apply_patches.sh ] ; then
4545
cd "${PROJECTROOTDIR}/htdocs" || { echo "Changing directory failed"; exit 1; }
46-
4746
bash ../vendor/aoepeople/magento-deployscripts/apply_patches.sh || { echo "Error while applying patches"; exit 1; }
48-
4947
cd ${PROJECTROOTDIR} || { echo "Changing directory failed"; exit 1; }
5048
fi
5149

0 commit comments

Comments
 (0)