16 lines
280 B
Bash
16 lines
280 B
Bash
#!/bin/sh
|
|
basedir=`dirname "$0"`
|
|
|
|
case `uname` in
|
|
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
esac
|
|
|
|
if [ -x "$basedir/node" ]; then
|
|
"$basedir/node" "$basedir/../sshpk/bin/sshpk-sign" "$@"
|
|
ret=$?
|
|
else
|
|
node "$basedir/../sshpk/bin/sshpk-sign" "$@"
|
|
ret=$?
|
|
fi
|
|
exit $ret
|