aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-05-02 01:54:21 +0300
committerZyX <kp-pav@yandex.ru>2017-05-02 04:03:50 +0300
commitbcc97afbd258c8608e73ff7765c33fe5da713fb9 (patch)
treefe8623623c7db75e0dd201debe71319fb408b810
parentcd190db8b3f1376a35a3cdce00e277018f809862 (diff)
downloadrneovim-bcc97afbd258c8608e73ff7765c33fe5da713fb9.tar.gz
rneovim-bcc97afbd258c8608e73ff7765c33fe5da713fb9.tar.bz2
rneovim-bcc97afbd258c8608e73ff7765c33fe5da713fb9.zip
pvscheck: Do not use `test x`
[ci skip]
-rwxr-xr-xscripts/pvscheck.sh10
1 files 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"