Merge pull request #3396 from mstruk/KEYCLOAK-3740

KEYCLOAK-3740 kcreg.sh doesn't support symlinking
This commit is contained in:
Stian Thorgersen 2016-10-20 19:26:53 +02:00 committed by GitHub
commit 284f49e584

View file

@ -1,5 +1,4 @@
#!/bin/sh #!/bin/sh
RESOLVED_NAME="$0"
case "`uname`" in case "`uname`" in
CYGWIN*) CYGWIN*)
CFILE = `cygpath "$0"` CFILE = `cygpath "$0"`
@ -16,6 +15,9 @@ case "`uname`" in
;; ;;
esac esac
DIRNAME=`dirname "$RESOLVED_NAME"` if [ "x$RESOLVED_NAME" = "x" ]; then
RESOLVED_NAME="$0"
fi
DIRNAME=`dirname "$RESOLVED_NAME"`
java $KC_OPTS -cp $DIRNAME/client/keycloak-client-registration-cli-${project.version}.jar org.keycloak.client.registration.cli.KcRegMain "$@" java $KC_OPTS -cp $DIRNAME/client/keycloak-client-registration-cli-${project.version}.jar org.keycloak.client.registration.cli.KcRegMain "$@"