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:
parent
eabbffb564
commit
696bffe605
|
@ -60,7 +60,7 @@ slaves="$*"
|
||||||
# print out the job ID, then redirect all 3 FDs
|
# print out the job ID, then redirect all 3 FDs
|
||||||
export job_id=$$ # can change to something else if needed
|
export job_id=$$ # can change to something else if needed
|
||||||
echo "($job_id&) $hn ==== ($repo) ===>" $slaves >&2
|
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
|
exec >>$logfile 2>&1 </dev/null
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
|
Loading…
Reference in a new issue