mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-05-04 04:18:05 +08:00
toolrunner should which tool before invoking (#220)
This commit is contained in:
11
packages/exec/__tests__/scripts/print-args-sh.sh
Executable file
11
packages/exec/__tests__/scripts/print-args-sh.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# store arguments in a special array
|
||||
args=("$@")
|
||||
# get number of elements
|
||||
ELEMENTS=${#args[@]}
|
||||
|
||||
# echo each element
|
||||
for (( i=0;i<$ELEMENTS;i++)); do
|
||||
echo "args[$i]: \"${args[${i}]}\""
|
||||
done
|
||||
Reference in New Issue
Block a user