Skip to content

Commit 7e450e1

Browse files
committed
Merge remote-tracking branch 'origin/6.4.x'
2 parents b3fe7d0 + bd8c782 commit 7e450e1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

build/build.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,14 @@ private function encode()
297297
throw new Exception($moduleFile . " must contain a 'requiredLicense()' function override.");
298298
}
299299

300-
run('cp ' . $moduleFile . ' ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/' . $moduleName . '/');
301-
run('cp ' . $this->sourceDir . '/business/' . $moduleName . '/language/* ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/' . $moduleName . '/language/');
302-
run('cp -r ' . $this->sourceDir . '/business/' . $moduleName . '/install/* ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/' . $moduleName . '/install/');
303-
}
300+
if (is_dir($this->sourceDir . '/business/' . $moduleName . '/language')) {
301+
run('cp ' . $this->sourceDir . '/business/' . $moduleName . '/language/* ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/' . $moduleName . '/language/');
302+
}
303+
304+
if (is_dir($this->sourceDir . '/business/' . $moduleName . '/install')) {
305+
run('cp -r ' . $this->sourceDir . '/business/' . $moduleName . '/install/* ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/' . $moduleName . '/install/');
306+
}
307+
}
304308

305309
run('rm -rf ' . $this->buildDir . "/" . $this->packageName . '/go/modules/business/.git*');
306310

0 commit comments

Comments
 (0)