forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBASH_Version.xml
More file actions
19 lines (19 loc) · 775 Bytes
/
BASH_Version.xml
File metadata and controls
19 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<extensionAttribute>
<displayName>BASH Version</displayName>
<description>Find the version of BASH installed. </description>
<dataType>string</dataType>
<scriptContentsMac>#!/bin/sh
##################################################################
# Extension Attribute checks version of BASH installed
# Cobbled together from other's hard work by Christopher Miller
# for ITSD-ISS of JHU-APL, Dated 2014-10-03
##################################################################
BASH_Version=$(/bin/bash --version | awk -F'[ |(]' '/version/{print $4}')
echo "<result>$BASH_Version</result>"
exit 0</scriptContentsMac>
<scriptContentsWindows/>
</extensionAttribute>