Last active
December 17, 2015 18:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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