File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -297,10 +297,14 @@ private function encode()
297
297
throw new Exception ($ moduleFile . " must contain a 'requiredLicense()' function override. " );
298
298
}
299
299
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
+ }
304
308
305
309
run ('rm -rf ' . $ this ->buildDir . "/ " . $ this ->packageName . '/go/modules/business/.git* ' );
306
310
You can’t perform that action at this time.
0 commit comments