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:
committed by
GitHub
parent
7a17b396d2
commit
5f5ed55d02
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user