KEYCLOAK-3740 kcreg.sh doesn't support symlinking
This commit is contained in:
parent
9f5acccc4f
commit
584d2e700d
1 changed files with 20 additions and 2 deletions
|
@ -1,3 +1,21 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
DIRNAME=`dirname "$0"`
|
RESOLVED_NAME="$0"
|
||||||
java $KC_OPTS -cp $DIRNAME/client/keycloak-client-registration-cli-${project.version}.jar org.keycloak.client.registration.cli.KcRegMain "$@"
|
case "`uname`" in
|
||||||
|
CYGWIN*)
|
||||||
|
CFILE = `cygpath "$0"`
|
||||||
|
RESOLVED_NAME=`readlink -f "$CFILE"`
|
||||||
|
;;
|
||||||
|
Darwin*)
|
||||||
|
RESOLVED_NAME=`readlink "$0"`
|
||||||
|
;;
|
||||||
|
FreeBSD)
|
||||||
|
RESOLVED_NAME=`readlink -f "$0"`
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
|
RESOLVED_NAME=`readlink -f "$0"`
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
DIRNAME=`dirname "$RESOLVED_NAME"`
|
||||||
|
|
||||||
|
java $KC_OPTS -cp $DIRNAME/client/keycloak-client-registration-cli-${project.version}.jar org.keycloak.client.registration.cli.KcRegMain "$@"
|
Loading…
Reference in a new issue