Project

General

Profile

« Previous | Next » 

Revision 9550

lib/sh/util.sh: $sed_cmd: don't use `command`, which causes sed calls (which are usually internal) to always be logged. instead, use echo_run wherever sed needs to be logged.

View differences:

lib/sh/util.sh
167 167
	echo "$result"
168 168
}
169 169

  
170
sed_cmd="command sed -`case "$(uname)" in Darwin) echo E;; *) echo r;; esac`"
170
sed_cmd="sed -`case "$(uname)" in Darwin) echo E;; *) echo r;; esac`"
171 171
alias sed="$sed_cmd"
172 172

  
173 173
fi # load new aliases
lib/sh/db.sh
179 179
mysqldump_diffable()
180 180
{
181 181
	echo_func
182
	mysqldump "$@"|{ pipe_delay; sed 's/^(-- Dump completed).*$/\1/'; }
182
	mysqldump "$@"|{ pipe_delay; echo_run sed 's/^(-- Dump completed).*$/\1/'; }
183 183
}
184 184

  
185 185

  

Also available in: Unified diff