Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison package-files/osx/JavaApplicationStub @ 40:a65a8f5a9647
Remove more deadwood.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 01 May 2020 23:07:23 -0700 |
parents | 89d7f4d91f67 |
children | 4903ac32a287 |
comparison
equal
deleted
inserted
replaced
39:89d7f4d91f67 | 40:a65a8f5a9647 |
---|---|
94 if [ ! -x "$java" ] | 94 if [ ! -x "$java" ] |
95 then | 95 then |
96 die "'$java' not found or not executable" | 96 die "'$java' not found or not executable" |
97 fi | 97 fi |
98 | 98 |
99 # function 'plist_get()' | |
100 # | |
101 # read a specific Plist key with 'PlistBuddy' utility | |
102 # | |
103 # @param1 the Plist key with leading colon ':' | |
104 # @return the value as String or Array | |
105 ################################################################################ | |
106 function plist_get { | 99 function plist_get { |
107 /usr/libexec/PlistBuddy -c "print $1" Contents/Info.plist 2> /dev/null | 100 /usr/libexec/PlistBuddy -c "print $1" Contents/Info.plist 2> /dev/null |
108 } | 101 } |
109 function must_get { | 102 function must_get { |
110 plist_get "$@" || die "Info.plist key '$1' not found." | 103 plist_get "$@" || die "Info.plist key '$1' not found." |