Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a22704fb8e | |||
| 8eb1cfffdb | |||
| 94722d3daa | |||
| f0db9f76e2 |
+1
-2
@@ -32,5 +32,4 @@ runs:
|
||||
- ${{ inputs.head }}
|
||||
- --fail
|
||||
- --no-update
|
||||
- ${{arg in inputs.extra_args.split(' ')}}${{arg}}${{end}}
|
||||
- ${{ arg }}
|
||||
- ${{ inputs.extra_args }}
|
||||
|
||||
+5
-3
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env ash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# "$@" should expand all args in an 'array' as they were passed in
|
||||
/usr/bin/trufflehog "$@"
|
||||
# Parse the last argument into an array of extra_args.
|
||||
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
|
||||
|
||||
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"
|
||||
Reference in New Issue
Block a user