From ef4158915886c2e1fdb564ccdbbbcad8cf2711cd Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 22 Jun 2016 15:54:13 -0700 Subject: [PATCH] Fix astyle wrap script. (#195) --- .astyle/astyle-wrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.astyle/astyle-wrap.sh b/.astyle/astyle-wrap.sh index d86713422..488611822 100755 --- a/.astyle/astyle-wrap.sh +++ b/.astyle/astyle-wrap.sh @@ -39,6 +39,6 @@ die() { set -x -[ -z `$@` ] || { - [ $@ =~ .*dry-run.* ] || die +[ -z "`$@`" ] || { + [ "$3" != "--dry-run" ] || die }