From bcc97afbd258c8608e73ff7765c33fe5da713fb9 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 2 May 2017 01:54:21 +0300 Subject: [PATCH] pvscheck: Do not use `test x` [ci skip] --- scripts/pvscheck.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh index 32d63646aa..6e95358aa8 100755 --- a/scripts/pvscheck.sh +++ b/scripts/pvscheck.sh @@ -135,16 +135,16 @@ do_recheck() { main() { local PVS_URL="http://files.viva64.com/pvs-studio-6.14.21446.1-x86_64.tgz" - if test "x$1" = "x--help" ; then + if test "$1" = "--help" ; then help return fi set -x - if test "x$1" = "x--patch" ; then + if test "$1" = "--patch" ; then shift - if test "x$1" = "x--only-build" ; then + if test "$1" = "--only-build" ; then shift patch_sources --only-build else @@ -154,7 +154,7 @@ main() { fi local recheck= - if test "x$1" = "x--recheck" ; then + if test "$1" = "--recheck" ; then recheck=1 shift fi @@ -162,7 +162,7 @@ main() { local tgt="${1:-$PWD/../neovim-pvs}" local branch="${2:-master}" - if test "x$recheck" = "x" ; then + if test -z "$recheck" ; then do_check "$tgt" "$branch" else do_recheck "$tgt"