From cf612cdfa9ceef947229b7f2cc2ef73ecf54fea4 Mon Sep 17 00:00:00 2001 From: Dan <31356438+danf42@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:56:04 -0400 Subject: [PATCH] Update T1552.004.yaml, Linux tests (#2042) redirect find errors Co-authored-by: Carrie Roberts --- atomics/T1552.004/T1552.004.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atomics/T1552.004/T1552.004.yaml b/atomics/T1552.004/T1552.004.yaml index 2eb97b88..9fe68db7 100644 --- a/atomics/T1552.004/T1552.004.yaml +++ b/atomics/T1552.004/T1552.004.yaml @@ -31,7 +31,7 @@ atomic_tests: default: /tmp/keyfile_locations.txt executor: command: | - find #{search_path} -name id_rsa >> #{output_file} + find #{search_path} -name id_rsa 2>/dev/null >> #{output_file} cleanup_command: | rm #{output_file} name: sh @@ -53,7 +53,7 @@ atomic_tests: executor: command: | mkdir #{output_folder} - find #{search_path} -name id_rsa -exec cp --parents {} #{output_folder} \; + find #{search_path} -name id_rsa 2>/dev/null -exec cp --parents {} #{output_folder} \; cleanup_command: | rm -rf #{output_folder} name: sh @@ -76,7 +76,7 @@ atomic_tests: executor: command: | mkdir #{output_folder} - find #{search_path} -name id_rsa -exec rsync -R {} #{output_folder} \; + find #{search_path} -name id_rsa 2>/dev/null -exec rsync -R {} #{output_folder} \; cleanup_command: | rm -rf #{output_folder} name: sh @@ -99,7 +99,7 @@ atomic_tests: executor: command: | mkdir #{output_folder} - find #{search_path} -type d -name '.gnupg' -exec rsync -Rr {} #{output_folder} \; + find #{search_path} -type d -name '.gnupg' 2>/dev/null -exec rsync -Rr {} #{output_folder} \; cleanup_command: | rm -rf #{output_folder} name: sh