From 2d83369f6f612a1ba91909e4e06102ff4dc3788e Mon Sep 17 00:00:00 2001 From: Masatake Iwasaki Date: Tue, 22 Dec 2020 07:19:44 +0900 Subject: [PATCH] HDFS-15743. Fix -Pdist build failure of hadoop-hdfs-native-client. (#2569) (cherry picked from commit 9aefe72ed68fdf3ae6015a6fed15d8bb20b0c6fb) --- dev-support/bin/dist-copynativelibs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/bin/dist-copynativelibs b/dev-support/bin/dist-copynativelibs index 7f2b6ad1f5..95de186e7e 100755 --- a/dev-support/bin/dist-copynativelibs +++ b/dev-support/bin/dist-copynativelibs @@ -164,7 +164,7 @@ fi # 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}" cd "${BIN_DIR}" || exit 1 ${TAR} ./* | (cd "${TARGET_BIN_DIR}"/ || exit 1; ${UNTAR})