Use inherited dataProvider variable
This commit is contained in:
committed by
T. R. Bernstein
parent
1feb6eff2f
commit
d569d9a47a
@@ -57,7 +57,6 @@ function createXPCConsumer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getProductPlistDict() {
|
function getProductPlistDict() {
|
||||||
local dataProvider="$1"
|
|
||||||
cat <<- PLISTDICT
|
cat <<- PLISTDICT
|
||||||
<dict>
|
<dict>
|
||||||
<key>idProduct</key>
|
<key>idProduct</key>
|
||||||
@@ -91,7 +90,6 @@ function createRemapKeysBinary() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createLaunchDaemon() {
|
function createLaunchDaemon() {
|
||||||
local dataProvider="$1"
|
|
||||||
cat > ${launchDaemonPath} <<- LDAEMON
|
cat > ${launchDaemonPath} <<- LDAEMON
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
@@ -110,7 +108,7 @@ function createLaunchDaemon() {
|
|||||||
<dict>
|
<dict>
|
||||||
<key>com.apple.device-attach</key>
|
<key>com.apple.device-attach</key>
|
||||||
<dict>
|
<dict>
|
||||||
$(getProductPlistDict $dataProvider)
|
$(getProductPlistDict)
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
Reference in New Issue
Block a user