Fix issue with non-executable bashf file (#942)
The file has to be marked as executable before it can run. When the repository is cloned there is no executable flag set and running the test would cause the following error: `failed to run command '/home/user/src/atomic-red-team/atomics/T1154/../T1154/src/echo-art-fish.sh': Permission denied`. Using `sh` with the `trap` command fixes the issue and doesn't require to manually set the flag.
This commit is contained in:
@@ -16,6 +16,6 @@ atomic_tests:
|
||||
executor:
|
||||
name: sh
|
||||
command: |
|
||||
trap "nohup $PathToAtomicsFolder/T1154/src/echo-art-fish.sh | bash" EXIT
|
||||
trap "nohup sh $PathToAtomicsFolder/T1154/src/echo-art-fish.sh | bash" EXIT
|
||||
exit
|
||||
trap "nohup $PathToAtomicsFolder/T1154/src/echo-art-fish.sh | bash" SIGINt
|
||||
trap "nohup sh $PathToAtomicsFolder/T1154/src/echo-art-fish.sh | bash" SIGINt
|
||||
|
||||
Reference in New Issue
Block a user