Fix some mistake in T1560.002 and T1016.001 (#3056)
Co-authored-by: Bhavin Patel <bhavin.j.patel91@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@ Check internet connection using ping on Linux, MACOS. The default target of the
|
||||
|
||||
|
||||
```bash
|
||||
ping -n 4 #{ping_target}
|
||||
ping -c 4 #{ping_target}
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ atomic_tests:
|
||||
name: bash
|
||||
elevation_required: false
|
||||
command: |
|
||||
ping -n 4 #{ping_target}
|
||||
ping -c 4 #{ping_target}
|
||||
- name: Check internet connection using Test-NetConnection in PowerShell (ICMP-Ping)
|
||||
auto_generated_guid: f8160cde-4e16-4c8b-8450-6042d5363eb0
|
||||
description: |
|
||||
|
||||
@@ -198,7 +198,7 @@ Uses tarfile from Python to compress files
|
||||
|
||||
```sh
|
||||
which_python=`which python || which python3`
|
||||
$which_python -c "from zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')"
|
||||
$which_python -c "import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()"
|
||||
```
|
||||
|
||||
#### Cleanup Commands:
|
||||
|
||||
@@ -123,6 +123,6 @@ atomic_tests:
|
||||
elevation_required: false
|
||||
command: |
|
||||
which_python=`which python || which python3`
|
||||
$which_python -c "from zipfile import ZipFile; ZipFile('#{path_to_output_file}', mode='w').write('#{path_to_input_file}')"
|
||||
$which_python -c "import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()"
|
||||
cleanup_command: |
|
||||
rm #{path_to_output_file}
|
||||
|
||||
Reference in New Issue
Block a user