HDFS-15743. Fix -Pdist build failure of hadoop-hdfs-native-client. (#2569)
(cherry picked from commit 9aefe72ed6
)
This commit is contained in:
parent
a8c0083b1b
commit
2d83369f6f
@ -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