From: Roland Schulz Date: Tue, 16 Jun 2015 06:15:36 +0000 (-0400) Subject: Fix warning in uncrustify X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=37de87dbb3f06d617668f65fd1da0026dd32023f;p=alexxy%2Fgromacs.git Fix warning in uncrustify Change-Id: I101a3fcfe4d50191a2237ac0743979a841349cce --- 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