From 27a84ac2734713a3d1c32bcd0052401af8fff07d Mon Sep 17 00:00:00 2001 From: Nate Bargmann Date: Tue, 2 Jun 2020 08:47:17 -0500 Subject: [PATCH] Remove bashisms from scripts/build-w32.sh --- scripts/build-w32.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/scripts/build-w32.sh b/scripts/build-w32.sh index a7dfab7fc..5e98d3fb4 100755 --- a/scripts/build-w32.sh +++ b/scripts/build-w32.sh @@ -30,17 +30,27 @@ EX_NOINPUT=66 # Pass name of Hamlib archive extracted in $BUILD_DIR if [ $# -ne 1 ]; then - echo -e "\nUsage: $(basename $0) hamlib-version\n" - echo -e "See README.build-Windows for more information.\n" + echo + echo "Usage: $(basename $0) hamlib-version" + echo "See README.build-Windows for more information." + echo + exit ${EX_USAGE} fi # Make sure the Hamlib archive is where we expect if [ -d ${BUILD_DIR}/$1 ]; then - echo -e "\nBuilding W32 binaries in ${BUILD_DIR}/$1\n\n" + echo + echo "Building W32 binaries in ${BUILD_DIR}/$1" + echo + cd ${BUILD_DIR}/$1 else - echo -e "\nBuild directory, ${BUILD_DIR}/$1 not found!\nCheck path for $1 or correct the version number.\n" + echo + echo "Build directory, ${BUILD_DIR}/$1 not found!" + echo "Check path for $1 or correct the version number." + echo + exit ${EX_NOINPUT} fi