Skip to content

Commit

Permalink
Improve quoting of command line arguments for build/run scripts (#1511)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe <[email protected]>
  • Loading branch information
jlowe authored Oct 23, 2023
1 parent a535a1e commit 966c5f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build/build-in-docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -45,9 +45,9 @@ if [[ "$CCACHE_DISABLE" != "1" ]]; then
fi
fi

$SCRIPTDIR/run-in-docker "mvn \
$SCRIPTDIR/run-in-docker mvn \
-Dmaven.repo.local=$LOCAL_MAVEN_REPO \
-DCUDF_USE_PER_THREAD_DEFAULT_STREAM=$CUDF_USE_PER_THREAD_DEFAULT_STREAM \
-DUSE_GDS=$USE_GDS \
$_CUDF_CLEAN_SKIP \
$*"
"$@"
2 changes: 1 addition & 1 deletion build/run-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (( $# == 0 )); then
DOCKER_OPTS="${DOCKER_OPTS} -it"
RUN_CMD="/bin/bash"
else
RUN_CMD="$*"
RUN_CMD="${@@Q}"
fi

$DOCKER_CMD run $DOCKER_GPU_OPTS $DOCKER_RUN_EXTRA_ARGS -u $(id -u):$(id -g) --rm \
Expand Down

0 comments on commit 966c5f9

Please sign in to comment.