From 37de87dbb3f06d617668f65fd1da0026dd32023f Mon Sep 17 00:00:00 2001 From: Roland Schulz Date: Tue, 16 Jun 2015 02:15:36 -0400 Subject: [PATCH] Fix warning in uncrustify Change-Id: I101a3fcfe4d50191a2237ac0743979a841349cce --- admin/uncrustify.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/uncrustify.sh b/admin/uncrustify.sh index da28285613..a4e2876dc1 100755 --- a/admin/uncrustify.sh +++ b/admin/uncrustify.sh @@ -276,7 +276,11 @@ elif [[ $action == update-workdir ]] ; then fi # Report what was done -sort $tmpdir/messages | tee $srcdir/$warning_file +if [ "$warning_file" ]; then + sort $tmpdir/messages | tee $srcdir/$warning_file +else + sort $tmpdir/messages +fi rm -rf $tmpdir exit $changes -- 2.22.0