Skip to content

Commit b3d8df4

Browse files
authored
Update setup-docker.js
1 parent 3871a5f commit b3d8df4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/setup-docker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ async function run() {
162162
set -x
163163
164164
165+
VmnetdVersion=$(cat /Applications/Docker.app/Contents/Info.plist | tail -5 | head -1 | cut -d '>' -f 2 | cut -d '<' -f 1)
166+
165167
cat <<EOF | tee /tmp/com.docker.vmnetd.plist
166168
<?xml version="1.0" encoding="UTF-8"?>
167169
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
@@ -188,7 +190,7 @@ cat <<EOF | tee /tmp/com.docker.vmnetd.plist
188190
</dict>
189191
</dict>
190192
<key>Version</key>
191-
<string>59</string>
193+
<string>${VmnetdVersion}</string>
192194
</dict>
193195
</plist>
194196
EOF

0 commit comments

Comments
 (0)