annotate easyhg-extdiff-osx.sh @ 213:90e70a9024f3

* Make findInPath return empty string if not found -- previous hopelessly fragile behaviour failed in situations where it was called with an absolute path
author Chris Cannam
date Wed, 05 Jan 2011 16:08:37 +0000
parents c5fceb3fe5b4
children 43ecb0dcc44e
rev   line source
Chris@210 1 #!/bin/bash
Chris@210 2 if [ $# -lt 2 ]; then
Chris@210 3 echo Insufficient arguments: $@
Chris@210 4 exit 2
Chris@210 5 fi
Chris@210 6 while [ $# -gt 2 ]; do
Chris@210 7 shift
Chris@210 8 done
Chris@210 9 /usr/bin/opendiff "$1" "$2"