Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
openpower-libhei
/
fc4aa5ecebfbc8d6fab8b0d88d3d9c1bbbcde8ab
/
.
/
xml
/
xml_list.sh
blob: ca598ccf214b9477d85388dc4960472f7f04ad1b [
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 XML files in the given directory.
for
i
in
"$1"
/*.
xml
;
do
if
[
-
f
"$i"
];
then
echo
"$i"
fi
done