Copy sources only if the directory exists
This commit is contained in:
parent
24f2c1d13f
commit
a6587c091c
@ -42,8 +42,8 @@ sed -f "src/main/replacements/replace-${OPERATING_SYSTEM_NAME}-${CPU_ARCHITECTUR
|
|||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
echo "Copying source files..."
|
echo "Copying source files..."
|
||||||
cp -r ./src/main/tdapi-java ./generated/src/main/java
|
[ -d ./src/main/tdapi-java ] && cp -r ./src/main/tdapi-java ./generated/src/main/java
|
||||||
cp -r ./src/main/tdapi-resources ./generated/src/main/resources
|
[ -d ./src/main/tdapi-resources ] && cp -r ./src/main/tdapi-resources ./generated/src/main/resources
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user