Skip to content

Commit 2f54072

Browse files
committed
improve catch_all stdin example
1 parent 2ba6da3 commit 2f54072

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/catch-all-stdin/src/root_command.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
inspect_args
22

3-
# Collect the catch_all
4-
files=( ${other_args[*]} )
5-
63
# Read contents of the provided file(s)
74
content=""
8-
for file in "${files[@]}"; do
5+
for file in "${other_args[@]}"; do
96
content+="$(cat "$file")"
107
content+=$'\n'
118
done

0 commit comments

Comments
 (0)