Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active December 17, 2015 18:08
Show Gist options
  • Save icaoberg/5650572 to your computer and use it in GitHub Desktop.
Save icaoberg/5650572 to your computer and use it in GitHub Desktop.
[OMERO.server][OMERO.searcher] Check if a group exists in the OMERO.server
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <groupname>" >&2
exit 1
fi
GROUPNAME=$1
TEMP=`omero group list | grep "$GROUPNAME"`
if [ -z "$TEMP" ]; then echo false; else echo true; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment