Skip to content

Commit

Permalink
Merge pull request #42 from robertdebock/patch-1
Browse files Browse the repository at this point in the history
This should work on any OS.
  • Loading branch information
Liam Bennett committed Mar 30, 2015
2 parents f8f1ddd + 75b2fa6 commit b4bc451
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions files/rundeck_version
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

if [ -x /usr/bin/dpkg ]; then
VERSION=`dpkg -l | grep rundeck | awk '{ print $3}'`
echo "rundeck_version=$VERSION"
fi
# Ask puppet what version of rundeck is installed.
# Will return the version or if not available: "absent".
puppet resource package rundeck | grep ensure | awk '{print $NF}' | sed "s/'//g;s/,//g"

0 comments on commit b4bc451

Please sign in to comment.