dockutil version check Extension Attribute.

rmanly
Contributor III

Kyle posted an update to dockutil yesterday.
http://patternbuffer.wordpress.com/2012/02/05/dockutil-1-1-released/

I just whipped this up. It doesn't account for the possibility of there being both an OLD and a NEW version because I know I will not run into that. You also have to modify the path to dockutil in the first test to wherever you dropped the old one.

#!/bin/bash

if [[ -e /usr/sbin/dockutil ]]; then

    echo "<result>OLD</result>"

elif [[ -e /usr/local/bin/dockutil ]]; then

    echo "<result>NEW</result>"

else

    echo "<result>NONE</result>"

fi
0 REPLIES 0