Zane Shelley | 2215d23 | 2023-04-07 14:43:40 -0500 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # Verify input. | ||||
4 | if [ ! -d "$1" ]; then | ||||
5 | echo "Invalid directory: $1" 1>&2 | ||||
6 | exit 1 | ||||
7 | fi | ||||
8 | |||||
9 | # Simply list out all of the JSON files in the given directory. | ||||
10 | for i in "$1"/*.json; do | ||||
11 | if [ -f "$i" ]; then | ||||
12 | echo "$i" | ||||
13 | fi | ||||
14 | done |