Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openpower-libhei
/
94db72a9842935ce3de114f8c17df3ba986a6056
/
.
/
chip_data
/
json_list.sh
blob: e59b1276e7fc89ac7e14778a5c8404669dd33cfa [
file
] [
log
] [
blame
]
#!/bin/sh
# Verify input.
if
[
!
-
d
"$1"
];
then
echo
"Invalid directory: $1"
1
>&
2
exit
1
fi
# Simply list out all of the JSON files in the given directory.
for
i
in
"$1"
/*.
json
;
do
if
[
-
f
"$i"
];
then
echo
"$i"
fi
done