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-06 21:09:55 +05:30
committed by Sitaram Chamarty
parent eabbffb564
commit 696bffe605
+1 -1
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
# ----------