forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAIR_Version.xml
28 lines (28 loc) · 830 Bytes
/
AIR_Version.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<extensionAttribute>
<displayName>AIR Version</displayName>
<description/>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/bash
# Christoph von Gabler-Sahm ([email protected])
# Version 1.0
#
# Modified by Sam Novak ([email protected]) for AIR
# checks installed version of AIR Framework
# Plugin version
S_VERSION=$( /usr/bin/defaults read /Library/Frameworks/Adobe\ AIR.framework/Versions/Current/Resources/Info CFBundleVersion 2>/dev/null )
if [[ "${S_VERSION}" != "" ]]; then
EA_RESULT="${S_VERSION}"
else
EA_RESULT="Not installed"
fi
echo "<result>${EA_RESULT}</result>"</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>