From 9aefe72ed68fdf3ae6015a6fed15d8bb20b0c6fb 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) --- 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 7f2b6ad1f56..95de186e7e7 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})