MYNT-EYE-S-SDK/scripts/getfind.sh

15 lines
280 B
Bash
Raw Normal View History

2018-03-08 09:54:14 +02:00
#!/usr/bin/env sh
2018-03-08 11:30:47 +02:00
FIND="find"
2018-03-08 09:54:14 +02:00
if type where &> /dev/null; then
for i in `where find`; do
# find on MSYS instead of Windows
if [ `echo $i | grep -c "msys"` -gt 0 ]; then
2018-03-08 11:30:47 +02:00
FIND=`echo "${i%.exe}" | tr -d "[:space:]" | sed 's:\\\:/:g'`
2018-03-08 09:54:14 +02:00
fi
done
fi
2018-03-08 11:30:47 +02:00
echo "$FIND"