Skip to content

Commit

Permalink
Double quote variables to prevent word splitting in nist_test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Preisler committed Dec 6, 2016
1 parent 9ec1d83 commit 1718a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/nist/nist_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set -e -o pipefail

function test_nist {
test_dir="$1"
run_script="$(cd ${builddir}; pwd)/run"
${srcdir}/test_worker.py --scanner "${run_script} $OSCAP" ${srcdir}/$test_dir/
run_script="$(cd "${builddir}"; pwd)/run"
"${srcdir}/test_worker.py" --scanner "${run_script} $OSCAP" "${srcdir}/$test_dir/"
ret_val=$?
if [ $ret_val -eq 1 ]; then
return 1
Expand Down

0 comments on commit 1718a2a

Please sign in to comment.