From 696bffe60578a1b170641dcfaaec01f373460259 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Tue, 4 Oct 2011 10:39:37 -0700 Subject: [PATCH] Use sed instead of bashism (pattern substitution) in gl-mirror-push gl-mirror-push fails with dash as /bin/sh due to the use of bash pattern substition (${parameter/pattern/string}). Use sed instead. --- src/gl-mirror-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl-mirror-push b/src/gl-mirror-push index 4855c1b..1c6da4e 100755 --- a/src/gl-mirror-push +++ b/src/gl-mirror-push @@ -60,7 +60,7 @@ slaves="$*" # print out the job ID, then redirect all 3 FDs export job_id=$$ # can change to something else if needed echo "($job_id&) $hn ==== ($repo) ===>" $slaves >&2 -logfile=${GL_LOG/%.log/-mirror-pushes.log} +logfile=`echo $GL_LOG | sed 's/\.log$/-mirror-pushes.log/'` exec >>$logfile 2>&1