Skip to content

Commit f113511

Browse files
committed
avoid copy java code if it does not exist
1 parent 668cedc commit f113511

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

distribute.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ function run_distribute() {
548548
try cp -a $BUILD_PATH/libs/* libs/$ARCH/
549549

550550
debug "Copy java files from various libs"
551-
try cp -a $BUILD_PATH/java/* src
551+
if [ "$(ls -A $BUILD_PATH/java)" ]; then
552+
try cp -a $BUILD_PATH/java/* src
553+
fi
552554

553555
debug "Fill private directory"
554556
try cp -a python-install/lib private/

0 commit comments

Comments
 (0)