Copy sources only if the directory exists

This commit is contained in:
Andrea Cavalli 2020-12-29 19:38:06 +01:00
parent 24f2c1d13f
commit a6587c091c

View File

@ -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