Browse Source

create folder before copying

Karsten Böddeker 7 years ago
parent
commit
403c1f81ef
1 changed files with 3 additions and 2 deletions
  1. 3 2
      build.sh

+ 3 - 2
build.sh

@@ -280,8 +280,9 @@ if [ "${PUBLISH}" -eq "1" ]; then
 
 	# copy manifest and the build info file
 	progress "Copying manifest and build info file ..."
-	cp "${MANIFEST_DIR}/${BRANCH}.manifest" "${OUTPUT_DIR}/${VERSION}/"
-	cp -p "${build_info_path}" "${OUTPUT_DIR}/${VERSION}/${BUILD_INFO_FILENAME}"
+	mkdir -p "${OUTPUT_DIR}/${VERSION}/"
+	cp -f "${MANIFEST_DIR}/${BRANCH}.manifest" "${OUTPUT_DIR}/${VERSION}/"
+	cp -f "${build_info_path}" "${OUTPUT_DIR}/${VERSION}/${BUILD_INFO_FILENAME}"
 
 	# Update symlinks
 	progress "Update symlink for ${BRANCH}"