Skip to content

Instantly share code, notes, and snippets.

@damm
Created October 13, 2009 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damm/208863 to your computer and use it in GitHub Desktop.
Save damm/208863 to your computer and use it in GitHub Desktop.
gemcount=`gem list --local something | wc -l`
if [ "${gemcount}" = "1" ]
then
echo "OK: it's installed"
exit 0
else
echo "I am sorry but #{gemcount} != 1"
exit 1
fi
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment