mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
pvscheck: Do not use test x
[ci skip]
This commit is contained in:
parent
cd190db8b3
commit
bcc97afbd2
@ -135,16 +135,16 @@ do_recheck() {
|
|||||||
main() {
|
main() {
|
||||||
local PVS_URL="http://files.viva64.com/pvs-studio-6.14.21446.1-x86_64.tgz"
|
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
|
help
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if test "x$1" = "x--patch" ; then
|
if test "$1" = "--patch" ; then
|
||||||
shift
|
shift
|
||||||
if test "x$1" = "x--only-build" ; then
|
if test "$1" = "--only-build" ; then
|
||||||
shift
|
shift
|
||||||
patch_sources --only-build
|
patch_sources --only-build
|
||||||
else
|
else
|
||||||
@ -154,7 +154,7 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local recheck=
|
local recheck=
|
||||||
if test "x$1" = "x--recheck" ; then
|
if test "$1" = "--recheck" ; then
|
||||||
recheck=1
|
recheck=1
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
@ -162,7 +162,7 @@ main() {
|
|||||||
local tgt="${1:-$PWD/../neovim-pvs}"
|
local tgt="${1:-$PWD/../neovim-pvs}"
|
||||||
local branch="${2:-master}"
|
local branch="${2:-master}"
|
||||||
|
|
||||||
if test "x$recheck" = "x" ; then
|
if test -z "$recheck" ; then
|
||||||
do_check "$tgt" "$branch"
|
do_check "$tgt" "$branch"
|
||||||
else
|
else
|
||||||
do_recheck "$tgt"
|
do_recheck "$tgt"
|
||||||
|
Loading…
Reference in New Issue
Block a user