Fix OS examples annotated by Yitao
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": "echo password | sudo -S su - charles"
|
||||
"command": "echo password | sudo -S su - charles",
|
||||
"shell": true
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -19,9 +20,8 @@
|
||||
"func": "exact_match",
|
||||
"result": {
|
||||
"type": "vm_command_line",
|
||||
"config": {
|
||||
"command": "if [ '$(whoami)' = 'charles' ]; then echo 'Current user is charles.'; else echo 'Current user is not charles'; fi"
|
||||
}
|
||||
"command": "if [ '$(whoami)' = 'charles' ]; then echo 'Current user is charles.'; else echo 'Current user is not charles'; fi",
|
||||
"shell": true
|
||||
},
|
||||
"expected": {
|
||||
"type": "rule",
|
||||
|
||||
Reference in New Issue
Block a user