HDFS-15743. Fix -Pdist build failure of hadoop-hdfs-native-client. (#2569)

This commit is contained in:
Masatake Iwasaki 2020-12-22 07:19:44 +09:00 committed by GitHub
parent ba496f61f8
commit 9aefe72ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ fi
# Windows doesn't have a LIB_DIR, everything goes into bin # Windows doesn't have a LIB_DIR, everything goes into bin
if [[ -d "${BIN_DIR}" ]] ; then if [[ -d "${BIN_DIR}" && $(ls -A "${BIN_DIR}") ]] ; then
mkdir -p "${TARGET_BIN_DIR}" mkdir -p "${TARGET_BIN_DIR}"
cd "${BIN_DIR}" || exit 1 cd "${BIN_DIR}" || exit 1
${TAR} ./* | (cd "${TARGET_BIN_DIR}"/ || exit 1; ${UNTAR}) ${TAR} ./* | (cd "${TARGET_BIN_DIR}"/ || exit 1; ${UNTAR})