MYNT-EYE-S-SDK/scripts/getfind.sh
2018-03-09 11:52:49 +08:00

15 lines
282 B
Bash
Executable File

#!/usr/bin/env bash
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"