Created
May 25, 2013 19:34
-
-
Save icaoberg/5650475 to your computer and use it in GitHub Desktop.
[OMERO.server][OMERO.searcher] Check if a user 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 <username>" >&2 | |
exit 1 | |
fi | |
USERNAME=$1 | |
TEMP=`omero user list | grep "$USERNAME"` | |
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