Fix gsi-pubsign-release.sh rsync command

Add trailing / to rsync source directory, this prevents rsync from
creating an additional level of directory under the destination.

For example, if `tree src` outputs:
  src
  └── file

then:
$ rsync src dest   # creates dest/src/file
$ rsync src/ dest  # creates dest/file

Bug: 149803895
Test: ./gsi-pubsign-release.sh aosp_arm64 aosp_arm64_pubsign \
        aosp_arm64-artifact_path aosp_arm64_pubsign-artifact_path

Merged-In: I90a80a7afdf6f71db592599c6a645554cf830309
Change-Id: I90a80a7afdf6f71db592599c6a645554cf830309
(cherry picked from commit 8b15a8ba3c)
This commit is contained in:
Yo Chiang
2020-02-26 20:50:46 +08:00
parent 12d2ae00ea
commit 7d0189a6ec

View File

@@ -53,7 +53,7 @@ fi
# Don't copy logs/ and files whose name starts with $SRC_PRODUCT
rsync --verbose --archive --copy-links --exclude='logs' \
--exclude="${SRC_PRODUCT}-*" "${SRC_DIR}" "${DIST_DIR}"
--exclude="${SRC_PRODUCT}-*" "${SRC_DIR}/" "${DIST_DIR}"
# Rename ${SRC_PRODUCT}-xxx.yyy to ${TARGET_PRODUCT}-xxx.yyy
for src_path in $(find "${SRC_DIR}" -type f -name "${SRC_PRODUCT}-*") ; do