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