diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2010-07-03 11:19:31 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2010-07-11 19:01:27 -0500 |
commit | 597a4d96665b63705124bb9be5c71534f4b5bf0f (patch) | |
tree | 3079ffa1eaad8ffaca61440d26995f4a2c5e433c /functions | |
parent | b45b1134428b152d5be8284847d4dba1a9ad380d (diff) |
A little creative parameter expansion simplifies stat_die().
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -116,10 +116,8 @@ stat_fail() { } stat_die() { - retval=1 - [ "$1" = "" ] || retval=$1 stat_fail - exit $retval + exit ${1:-1} } status() { |