From 1f57ed347f35374539f933473c7e2049cf92c2e5 Mon Sep 17 00:00:00 2001 From: Michael Metzger Date: Sat, 2 Feb 2019 11:57:43 -0600 Subject: [PATCH] - Modify sql-big-data-cluster/bootstrap-sample-db.sh to support Mac CLI -- Change /dev/nul to /dev/null -- Modify the 'mkdir' paramter to '-p' instead of '--parents' --- samples/features/sql-big-data-cluster/bootstrap-sample-db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh index 0402e639..b08ac089 100644 --- a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh +++ b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sh @@ -27,12 +27,12 @@ KNOX_ENDPOINT=$KNOX_IP:30443 for util in sqlcmd bcp kubectl curl do - echo Verifying $util is in path & which $util 1>/dev/nul 2>/dev/nul || (echo Unable to locate $util && exit 1) + echo Verifying $util is in path & which $util 1>/dev/null 2>/dev/null || (echo Unable to locate $util && exit 1) done # Copy the backup file, restore the database, create necessary objects and data file pushd "/tmp" -$DEBUG mkdir --parents "$TMP_DIR_NAME" +$DEBUG mkdir -p "$TMP_DIR_NAME" $DEBUG cd "$TMP_DIR_NAME" echo Downloading sample database backup file...