make shell exec error and normal error look the same for easier grepping in logfiles

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-14 08:45:55 +02:00
commit b76c4a5105
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ outfile="$1"; shift
(
for host in "$@"; do
hosts="$hosts $host"
cdist config -c ~/p/cdist-nutzung -p $hosts
cdist config -c ~/p/cdist-nutzung -p $hosts 2>&1
done
) | tee "$outfile"
echo "----------"