We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea10eb commit 12732a5Copy full SHA for 12732a5
utils/oscap-ssh
@@ -303,7 +303,7 @@ echo "Starting the evaluation..."
303
# changing directory because of --oval-results support. oval results files are
304
# dumped into PWD, and we can't be sure by the file names - we need controlled
305
# environment
306
-ssh_execute_with_command_and_options "cd $REMOTE_TEMP_DIR || exit 1; umask 022; ${OSCAP_SUDO[@]} scap $(command_array_to_string "${oscap_args[@]}")" "$SSH_TTY_ALLOCATION_OPTION"
+ssh_execute_with_command_and_options "cd $REMOTE_TEMP_DIR || exit 1; umask 022; $(command_array_to_string "${OSCAP_SUDO[@]}" scap "${oscap_args[@]}")" "$SSH_TTY_ALLOCATION_OPTION"
307
OSCAP_EXIT_CODE=$?
308
echo "oscap exit code: $OSCAP_EXIT_CODE"
309
0 commit comments