Skip to content

Commit

Permalink
Fix T1003.008.yaml (#2891)
Browse files Browse the repository at this point in the history
* Replacing wrong reference to input variable

* Undoing the change on md file

---------

Co-authored-by: Hare Sudhan <[email protected]>
  • Loading branch information
AlbertoPellitteri and cyberbuff authored Aug 6, 2024
1 parent 7a17b39 commit 5f5ed55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomics/T1003.008/T1003.008.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f5ed55

Please sign in to comment.