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.
This commit is contained in:
Svend Sorensen 2011-10-04 10:39:37 -07:00 committed by Sitaram Chamarty
parent eabbffb564
commit 696bffe605

View file

@ -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 </dev/null
# ----------