commit:     d97b2662fa789f2b6962320061c9c1315e0f9344
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue May 24 02:02:22 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue May 24 02:02:22 2016 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=d97b2662

catalyst-auto: use `local` in a few more places

 tools/catalyst-auto | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index de1b10d..2598fd5 100755
--- a/tools/catalyst-auto
+++ b/tools/catalyst-auto
@@ -56,9 +56,9 @@ EOH
 }
 
 send_email() {
-  subject="${EMAIL_SUBJECT_PREPEND} $1"
-  message=$2
-  logfile=$3
+  local subject="${EMAIL_SUBJECT_PREPEND} $1"
+  local message=$2
+  local logfile=$3
 
   if [ -n "${logfile}" ]; then
     body=$(printf '%b\n\n\n' "${message}"; tail -n 200 "${logfile}"; printf 
'\n\n\nFull build log at %s\n' "${logfile}")
@@ -72,8 +72,8 @@ send_email() {
 }
 
 run_cmd() {
-  cmd=$1
-  logfile=$2
+  local cmd=$1
+  local logfile=$2
 
   if [ $verbose = 1 ]; then
     echo "*** Running command: ${cmd}"

Reply via email to