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:
you8023
2025-02-26 03:51:51 +08:00
committed by GitHub
parent c313a5a937
commit b9e0de4837
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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}
```
+1 -1
View File
@@ -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: |
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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}