From ac93efb3c13095d89412081893cc6ff7f9240408 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Wed, 13 Mar 2013 14:30:54 -0500 Subject: [PATCH] Minor comment corrections Change-Id: Ibe516911e76bb250bc5ea582b0d8b8a3b12890f1 --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 8cb703c567..2aab3cd7ff 100644 --- a/functions +++ b/functions @@ -53,8 +53,8 @@ function cp_it { } -# Prints "message" and exits -# die "message" +# Prints line number and "message" then exits +# die $LINENO "message" function die() { local exitcode=$? if [ $exitcode == 0 ]; then @@ -73,7 +73,7 @@ function die() { # Checks an environment variable is not set or has length 0 OR if the # exit code is non-zero and prints "message" and exits # NOTE: env-var is the variable name without a '$' -# die_if_not_set env-var "message" +# die_if_not_set $LINENO env-var "message" function die_if_not_set() { ( local exitcode=$?