updates
[james-home.git] / bin / fix-perl-shebang
blob25e5130b6ab66bc2fe6b12216c15ffbc5671887c
1 #!/bin/sh
2 PERL=$(which perl)
3 REALCMD="$(dirname ${0})/$(basename ${0}).real"
4 set -f # turn off globbing to pass args
5 [ -x ${PERL} ] && [ -x ${REALCMD} ] && exec ${PERL} ${REALCMD} $*
6 exit 111