From b4ed81c7d88466e4810c2a9fdb23190a1b1079ee Mon Sep 17 00:00:00 2001 From: Christian Pape Date: Fri, 10 Sep 2021 13:29:07 +0200 Subject: [PATCH] Added path handling to script --- ldap-sync.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ldap-sync.sh b/ldap-sync.sh index 042bd34..ed7cc37 100755 --- a/ldap-sync.sh +++ b/ldap-sync.sh @@ -1,3 +1,8 @@ #!/bin/bash +MY_PATH="`dirname \"$0\"`" +cd "$MY_PATH" +echo "*******************************" +echo "* LDAP-SYNC *" +echo "*******************************" date java -jar target/ldap-sync-1.0-SNAPSHOT-jar-with-dependencies.jar \ No newline at end of file