Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openpower-libhei
/
dd6363df53fac279a4c43b936973cb73aa4e3027
/
.
/
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