Skip to content

Commit

Permalink
add 'error' and 'fail' fnction definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
smoser committed Jul 28, 2011
1 parent d680db6 commit 7a8215f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova.sh
Expand Up @@ -16,6 +16,8 @@ function screen_it {
screen -r "$SCREEN_NAME" -x -X screen -t $1
screen -r "$SCREEN_NAME" -x -p $1 -X stuff "$2$NL"
}
function error() { echo "$@" 1>&2; }
function fail() { [ $# -eq 0 ] || error "$@" ; exit 1; }
# end function definitions

NOVA_DIR=$DIR/$DIRNAME
Expand Down

0 comments on commit 7a8215f

Please sign in to comment.