diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-07-10 14:30:21 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-07-10 14:30:21 -0400 |
commit | 5fadec09dcd44c4dcad657a0f3d96878b592b77b (patch) | |
tree | 1f551bc1350c39c185a2c0912c6b7e2161578244 /src/common | |
parent | c8b42c1d77005ab3f41d20cc2524f4307086ec4f (diff) |
Update man pages, and tweak default error return code.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -20,14 +20,10 @@ export ETC ######################################################################## ### UTILITY FUNCTIONS -error() { - log "$1" - ERR=${2:-'1'} -} - +# failure function. exits with code 255, unless specified otherwise. failure() { echo "$1" >&2 - exit ${2:-'1'} + exit ${2:-'255'} } # write output to stderr |