libretro-super/script-modules/util.sh
T. Joseph Carter 5d22805853 Logging changes
2015-04-27 19:47:42 -07:00

17 lines
228 B
Bash

# vim: set ts=3 sw=3 noet ft=sh : bash
# Lets us avoid use of wc
numwords() {
echo "$#"
}
find_tool() {
while [ -n "$1" ]; do
if [ -n "$1" ] && command -v "$1" > /dev/null; then
echo "$1"
return
fi
shift
done
}