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

(cherry picked from commit 9aefe72ed6)
This commit is contained in:
Masatake Iwasaki 2020-12-22 07:19:44 +09:00 committed by Wei-Chiu Chuang
parent a8c0083b1b
commit 2d83369f6f

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})