mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +08:00
11 lines
213 B
Bash
Executable File
11 lines
213 B
Bash
Executable File
#!/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 |