Skip to content

Commit b72f142

Browse files
authored
Merge pull request #237 from kerner1000/tweaks/admin-startup
Optimize shell
2 parents 5514389 + e9064a2 commit b72f142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/mac/startup.vtl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
# Mac OS X startup script generated by JavaPackager plugin
3-
SCRIPTPATH=`cd "$(dirname "$0")" ; pwd`
3+
SCRIPTPATH=$(cd "$(dirname "$0")" || return 1; pwd)
44
osascript -e "do shell script quoted form of \"$SCRIPTPATH\" & \"/universalJavaApplicationStub $@\" with administrator privileges" &

0 commit comments

Comments
 (0)