You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ "$LOCAL_CONTENT_PATH"=="" ] || [ -f"$LOCAL_CONTENT_PATH" ] || die "Expected the last argument to be an input file, '$LOCAL_CONTENT_PATH' isn't a valid file path or the file doesn't exist!"
273
-
[ "$LOCAL_TAILORING_PATH"=="" ] || [ -f"$LOCAL_TAILORING_PATH" ] || die "Tailoring file path '$LOCAL_TAILORING_PATH' isn't a valid file path or the file doesn't exist!"
274
-
[ "$LOCAL_LOCAL_FILES_PATH"=="" ] || [ -d"$LOCAL_LOCAL_FILES_PATH" ] || die "Directory '$LOCAL_LOCAL_FILES_PATH' isn't a valid directory path or the directory doesn't exist!"
275
-
[ "$LOCAL_CPE_PATH"=="" ] || [ -f"$LOCAL_CPE_PATH" ] || die "CPE file path '$LOCAL_CPE_PATH' isn't a valid file path or the file doesn't exist!"
276
-
[ "$LOCAL_VARIABLES_PATH"=="" ] || [ -f"$LOCAL_VARIABLES_PATH" ] || die "OVAL variables file path '$LOCAL_VARIABLES_PATH' isn't a valid file path or the file doesn't exist!"
277
-
[ "$LOCAL_DIRECTIVES_PATH"=="" ] || [ -f"$LOCAL_DIRECTIVES_PATH" ] || die "OVAL directives file path '$LOCAL_DIRECTIVES_PATH' isn't a valid file path or the file doesn't exist!"
272
+
[ "${LOCAL_CONTENT_PATH}"=="" ] || [ -f"${LOCAL_CONTENT_PATH}" ] || die "Expected the last argument to be an input file, '${LOCAL_CONTENT_PATH}' isn't a valid file path or the file doesn't exist!"
273
+
[ "${LOCAL_TAILORING_PATH}"=="" ] || [ -f"${LOCAL_TAILORING_PATH}" ] || die "Tailoring file path '${LOCAL_TAILORING_PATH}' isn't a valid file path or the file doesn't exist!"
274
+
[ "${LOCAL_LOCAL_FILES_PATH}"=="" ] || [ -d"${LOCAL_LOCAL_FILES_PATH}" ] || die "Directory '${LOCAL_LOCAL_FILES_PATH}' isn't a valid directory path or the directory doesn't exist!"
275
+
[ "${LOCAL_CPE_PATH}"=="" ] || [ -f"${LOCAL_CPE_PATH}" ] || die "CPE file path '${LOCAL_CPE_PATH}' isn't a valid file path or the file doesn't exist!"
276
+
[ "${LOCAL_VARIABLES_PATH}"=="" ] || [ -f"${LOCAL_VARIABLES_PATH}" ] || die "OVAL variables file path '${LOCAL_VARIABLES_PATH}' isn't a valid file path or the file doesn't exist!"
277
+
[ "${LOCAL_DIRECTIVES_PATH}"=="" ] || [ -f"${LOCAL_DIRECTIVES_PATH}" ] || die "OVAL directives file path '${LOCAL_DIRECTIVES_PATH}' isn't a valid file path or the file doesn't exist!"
278
278
279
-
if [ "$LOCAL_CONTENT_PATH"!="" ];then
280
-
echo"Copying input file '$LOCAL_CONTENT_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
281
-
scp_copy_to_temp_dir "$LOCAL_CONTENT_PATH" input.xml || die "Failed to copy input file to remote temporary directory!"
279
+
if [ "${LOCAL_CONTENT_PATH}"!="" ];then
280
+
echo"Copying input file '${LOCAL_CONTENT_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
281
+
scp_copy_to_temp_dir "${LOCAL_CONTENT_PATH}" input.xml || die "Failed to copy input file to remote temporary directory!"
282
282
fi
283
-
if [ "$LOCAL_TAILORING_PATH"!="" ];then
284
-
echo"Copying tailoring file '$LOCAL_TAILORING_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
285
-
scp_copy_to_temp_dir "$LOCAL_TAILORING_PATH" tailoring.xml || die "Failed to copy tailoring file to remote temporary directory!"
283
+
if [ "${LOCAL_TAILORING_PATH}"!="" ];then
284
+
echo"Copying tailoring file '${LOCAL_TAILORING_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
285
+
scp_copy_to_temp_dir "${LOCAL_TAILORING_PATH}" tailoring.xml || die "Failed to copy tailoring file to remote temporary directory!"
286
286
fi
287
-
if [ "$LOCAL_LOCAL_FILES_PATH"!="" ];then
288
-
echo"Copying directory '$LOCAL_LOCAL_FILES_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
289
-
scp_copy_dir_to_temp_dir "$LOCAL_LOCAL_FILES_PATH" local_files || die "Failed to copy directory $LOCAL_LOCAL_FILES_PATH to remote temporary directory!"
287
+
if [ "${LOCAL_LOCAL_FILES_PATH}"!="" ];then
288
+
echo"Copying directory '${LOCAL_LOCAL_FILES_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
289
+
scp_copy_dir_to_temp_dir "${LOCAL_LOCAL_FILES_PATH}" local_files || die "Failed to copy directory ${LOCAL_LOCAL_FILES_PATH} to remote temporary directory!"
290
290
fi
291
-
if [ "$LOCAL_CPE_PATH"!="" ];then
292
-
echo"Copying CPE file '$LOCAL_CPE_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
293
-
scp_copy_to_temp_dir "$LOCAL_CPE_PATH" cpe.xml || die "Failed to copy CPE file to remote temporary directory!"
291
+
if [ "${LOCAL_CPE_PATH}"!="" ];then
292
+
echo"Copying CPE file '${LOCAL_CPE_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
293
+
scp_copy_to_temp_dir "${LOCAL_CPE_PATH}" cpe.xml || die "Failed to copy CPE file to remote temporary directory!"
294
294
fi
295
-
if [ "$LOCAL_VARIABLES_PATH"!="" ];then
296
-
echo"Copying OVAL variables file '$LOCAL_VARIABLES_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
297
-
scp_copy_to_temp_dir "$LOCAL_VARIABLES_PATH" variables.xml || die "Failed to copy OVAL variables file to remote temporary directory!"
295
+
if [ "${LOCAL_VARIABLES_PATH}"!="" ];then
296
+
echo"Copying OVAL variables file '${LOCAL_VARIABLES_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
297
+
scp_copy_to_temp_dir "${LOCAL_VARIABLES_PATH}" variables.xml || die "Failed to copy OVAL variables file to remote temporary directory!"
298
298
fi
299
-
if [ "$LOCAL_DIRECTIVES_PATH"!="" ];then
300
-
echo"Copying OVAL directives file '$LOCAL_DIRECTIVES_PATH' to remote working directory '$REMOTE_TEMP_DIR'..."
301
-
scp_copy_to_temp_dir "$LOCAL_DIRECTIVES_PATH" directives.xml || die "Failed to copy OVAL directives file to remote temporary directory!"
299
+
if [ "${LOCAL_DIRECTIVES_PATH}"!="" ];then
300
+
echo"Copying OVAL directives file '${LOCAL_DIRECTIVES_PATH}' to remote working directory '${REMOTE_TEMP_DIR}'..."
301
+
scp_copy_to_temp_dir "${LOCAL_DIRECTIVES_PATH}" directives.xml || die "Failed to copy OVAL directives file to remote temporary directory!"
302
302
fi
303
303
304
304
echo"Starting the evaluation..."
305
305
# changing directory because of --oval-results support. oval results files are
306
306
# dumped into PWD, and we can't be sure by the file names - we need controlled
0 commit comments