Skip to content

Commit 1f57ed3

Browse files
Michael MetzgerMichael Metzger
authored andcommitted
- 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'
1 parent b87afa6 commit 1f57ed3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/features/sql-big-data-cluster/bootstrap-sample-db.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ KNOX_ENDPOINT=$KNOX_IP:30443
2727

2828
for util in sqlcmd bcp kubectl curl
2929
do
30-
echo Verifying $util is in path & which $util 1>/dev/nul 2>/dev/nul || (echo Unable to locate $util && exit 1)
30+
echo Verifying $util is in path & which $util 1>/dev/null 2>/dev/null || (echo Unable to locate $util && exit 1)
3131
done
3232

3333
# Copy the backup file, restore the database, create necessary objects and data file
3434
pushd "/tmp"
35-
$DEBUG mkdir --parents "$TMP_DIR_NAME"
35+
$DEBUG mkdir -p "$TMP_DIR_NAME"
3636
$DEBUG cd "$TMP_DIR_NAME"
3737

3838
echo Downloading sample database backup file...

0 commit comments

Comments
 (0)