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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user