summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-23 22:02:22 -0400
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2016-05-29 20:05:52 +0000
commit328b57d67bc6ae81ee0f579c95c526a08568e2d8 (patch)
tree16b1e535d88bf6ea8eaccd1ef991376468e6a6c1
parentcatalyst-auto: convert `echo -e` to `printf` (diff)
downloadreleng-328b57d67bc6ae81ee0f579c95c526a08568e2d8.tar.gz
releng-328b57d67bc6ae81ee0f579c95c526a08568e2d8.tar.bz2
releng-328b57d67bc6ae81ee0f579c95c526a08568e2d8.zip
catalyst-auto: use `local` in a few more places
-rwxr-xr-xtools/catalyst-auto10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/catalyst-auto b/tools/catalyst-auto
index de1b10d9..2598fd50 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}"