From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-883075-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3074D138264 for <garchives@archives.gentoo.org>; Tue, 24 May 2016 02:05:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F11E141E3; Tue, 24 May 2016 02:05:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 16F15141E3 for <gentoo-commits@lists.gentoo.org>; Tue, 24 May 2016 02:05:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDC62340BCD for <gentoo-commits@lists.gentoo.org>; Tue, 24 May 2016 02:05:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4CAA4987 for <gentoo-commits@lists.gentoo.org>; Tue, 24 May 2016 02:05:34 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <1464055342.d97b2662fa789f2b6962320061c9c1315e0f9344.vapier@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: tools/ X-VCS-Repository: proj/releng X-VCS-Files: tools/catalyst-auto X-VCS-Directories: tools/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d97b2662fa789f2b6962320061c9c1315e0f9344 X-VCS-Branch: master Date: Tue, 24 May 2016 02:05:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f49705cb-f553-4c55-9c83-ac0d4b73c302 X-Archives-Hash: acf2156763d8d75c0bee1ee072f433fe 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}"