mirror of
https://github.com/libretro/libretro-super
synced 2024-11-28 11:14:11 +00:00
Avoid use of wc command
This commit is contained in:
parent
c2ba909533
commit
a2633e0198
@ -6,6 +6,11 @@ echo_cmd() {
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Lets us avoid use of wc
|
||||||
|
numwords() {
|
||||||
|
echo "$#"
|
||||||
|
}
|
||||||
|
|
||||||
find_tool() {
|
find_tool() {
|
||||||
while [ -n "$1" ]; do
|
while [ -n "$1" ]; do
|
||||||
if [ -n "$1" ] && command -v "$1" > /dev/null; then
|
if [ -n "$1" ] && command -v "$1" > /dev/null; then
|
||||||
|
Loading…
Reference in New Issue
Block a user