mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
7 lines
278 B
Bash
Executable file
7 lines
278 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Parse the last argument into an array of extra_args.
|
|
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
|
|
|
|
results=$(/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}" | tee /dev/tty)
|
|
echo "results=$results" >> $GITHUB_OUTPUT
|