Installer: Get rid of superfluous emit commands for simplicity
[msysgit.git] / bin / wordpad
blob37d4d38cf23f01e06aa60700e9c70d353a30977a
1 #!/bin/sh
3 WORDPAD="$(ls "$PROGRAMFILES/Windows NT"/*/wordpad.exe | head -n 1)"
5 test $# = 1 &&
6 case "$1" in
7 \\*|/*|?:*) ;; # do nothing
8 *) set "$(pwd -W)/$1";;
9 esac
11 test -x "$WORDPAD" && exec "$WORDPAD" "$@"
13 echo "Could not launch $WORDPAD"
14 exit 1