MYNT-EYE-S-SDK/scripts/getfind.sh
2018-03-08 17:30:47 +08:00

15 lines
280 B
Bash
Executable File

#!/usr/bin/env sh
FIND="find"
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
FIND=`echo "${i%.exe}" | tr -d "[:space:]" | sed 's:\\\:/:g'`
fi
done
fi
echo "$FIND"