Fix T1003.008.yaml (#2891)

* Replacing wrong reference to input variable

* Undoing the change on md file

---------

Co-authored-by: Hare Sudhan <code@0x6c.dev>
This commit is contained in:
AlbertoPellitteri
2024-08-06 10:04:47 +02:00
committed by GitHub
parent 7a17b396d2
commit 5f5ed55d02
+1 -1
View File
@@ -71,7 +71,7 @@ atomic_tests:
executor:
command: |
unamestr=$(uname)
if [ "$unamestr" = 'Linux' ]; then echo -e "e /etc/passwd\n,p\ne /etc/shadow\n,p\n" | ed > ${output_file}; elif [ "$unamestr" = 'FreeBSD' ]; then echo -e "e /etc/passwd\n,p\ne /etc/master.passwd\n,p\ne /etc/shadow\n,p\n" | ed > ${output_file}; fi
if [ "$unamestr" = 'Linux' ]; then echo -e "e /etc/passwd\n,p\ne /etc/shadow\n,p\n" | ed > #{output_file}; elif [ "$unamestr" = 'FreeBSD' ]; then echo -e "e /etc/passwd\n,p\ne /etc/master.passwd\n,p\ne /etc/shadow\n,p\n" | ed > #{output_file}; fi
cleanup_command: |
rm -f #{output_file}
name: sh