Mercurial > repos > greg > gregs
diff abyss/abyss_wrapper.sh @ 4:a188de29f06e
Uploaded
| author | g2cmnty@test-web1.g2.bx.psu.edu |
|---|---|
| date | Tue, 28 Jun 2011 10:29:09 -0400 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/abyss/abyss_wrapper.sh Tue Jun 28 10:29:09 2011 -0400 @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ $# -ne 3 ] +then + echo "ERROR: Expected exactly 3 arguments; got: $*" 1>&2 + exit 1 +fi + +CMD=`ABYSS -k$1 $2 -o $3 2>&1` +if [ $? -ne 0 ] +then +{ + echo "COMMAND FAILURE: $CMD" 1>&2 + exit $? +} +fi
