HDFS-15743. Fix -Pdist build failure of hadoop-hdfs-native-client. (#2569)
This commit is contained in:
parent
ba496f61f8
commit
9aefe72ed6
@ -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})
|
||||||
|
Loading…
Reference in New Issue
Block a user