summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2010-07-03 11:19:31 -0500
committerVictor Lowther <victor.lowther@gmail.com>2010-07-11 19:01:27 -0500
commit597a4d96665b63705124bb9be5c71534f4b5bf0f (patch)
tree3079ffa1eaad8ffaca61440d26995f4a2c5e433c /functions
parentb45b1134428b152d5be8284847d4dba1a9ad380d (diff)
A little creative parameter expansion simplifies stat_die().
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/functions b/functions
index 8c2b597..b0a5912 100644
--- a/functions
+++ b/functions
@@ -116,10 +116,8 @@ stat_fail() {
}
stat_die() {
- retval=1
- [ "$1" = "" ] || retval=$1
stat_fail
- exit $retval
+ exit ${1:-1}
}
status() {