From 2d863b8d4cac9ecd83416c2b3118e2bc40641447 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Tue, 19 Jun 2018 12:41:24 -0400 Subject: [PATCH] PR Updates --- build-support/functions/20-build.sh | 2 +- build-support/functions/30-release.sh | 2 +- build-support/scripts/build-docker.sh | 2 +- build-support/scripts/functions.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-support/functions/20-build.sh b/build-support/functions/20-build.sh index 80e572ef3..1a96272f7 100644 --- a/build-support/functions/20-build.sh +++ b/build-support/functions/20-build.sh @@ -218,7 +218,7 @@ function build_consul_post { rm -r pkg.bin.new DEV_PLATFORM="./pkg/bin/${extra_dir}$(go env GOOS)_$(go env GOARCH)" - for F in $(find ${DEV_PLATFORM} -type f -mindepth 1 -maxdepth 1 ) + for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f ) do # recreate the bin dir rm -r bin/* 2> /dev/null diff --git a/build-support/functions/30-release.sh b/build-support/functions/30-release.sh index 5b7aee668..8021d73f1 100644 --- a/build-support/functions/30-release.sh +++ b/build-support/functions/30-release.sh @@ -87,7 +87,7 @@ function package_binaries { rm -rf "${ddir}" > /dev/null 2>&1 mkdir -p "${ddir}" >/dev/null 2>&1 - for platform in $(find -type d "${sdir}" -mindepth 1 -maxdepth 1 ) + for platform in $(find "${sdir}" -mindepth 1 -maxdepth 1 -type d ) do local os_arch=$(basename $platform) local dest="${ddir}/${CONSUL_PKG_NAME}_${vers}_${os_arch}.zip" diff --git a/build-support/scripts/build-docker.sh b/build-support/scripts/build-docker.sh index 472324a97..d741ef243 100755 --- a/build-support/scripts/build-docker.sh +++ b/build-support/scripts/build-docker.sh @@ -133,7 +133,7 @@ function main { if is_set "${refresh}" then status_stage "==> Refreshing Legacy UI build container image" - export UI_LEAGCY_BUILD_TAG="${image:-${UI_LEGACY_BUILD_CONTAINER_DEFAULT}}" + export UI_LEGACY_BUILD_TAG="${image:-${UI_LEGACY_BUILD_CONTAINER_DEFAULT}}" refresh_docker_images "${sdir}" ui-legacy-build-image || return 1 fi status_stage "==> Building UI" diff --git a/build-support/scripts/functions.sh b/build-support/scripts/functions.sh index ec473662c..2ddae96f2 100755 --- a/build-support/scripts/functions.sh +++ b/build-support/scripts/functions.sh @@ -9,7 +9,7 @@ FUNC_DIR=$(pwd) popd > /dev/null popd > /dev/null -func_sources=$(find ${FUNC_DIR} -type f -mindepth 1 -maxdepth 1 -name "*.sh" | sort -n) +func_sources=$(find ${FUNC_DIR} -mindepth 1 -maxdepth 1 -name "*.sh" -type f | sort -n) for src in $func_sources do