libretro-super/script-modules/util.sh

21 lines
249 B
Bash
Raw Permalink Normal View History

# vim: set ts=3 sw=3 noet ft=sh : bash
2015-03-28 01:07:29 +00:00
# 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
}
2015-04-06 05:24:57 +00:00
do_nothing() {
:
}