aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-08 00:29:44 +0100
committerJustin M. Keyes <justinkz@gmail.com>2019-01-08 01:30:46 +0100
commitc8e78abaf9c35c07cab8825a8f59e81a06e9ad50 (patch)
treeccd77927e99ef9ac04d10bd76113e0ffcc416a6a
parent0ccb9704d7a97e1b9bf7672db8904d0f9716b890 (diff)
downloadrneovim-c8e78abaf9c35c07cab8825a8f59e81a06e9ad50.tar.gz
rneovim-c8e78abaf9c35c07cab8825a8f59e81a06e9ad50.tar.bz2
rneovim-c8e78abaf9c35c07cab8825a8f59e81a06e9ad50.zip
pvscheck.sh: Skip install if dir exists
-rwxr-xr-xscripts/pvscheck.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index 11b672c515..bf523b023a 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -8,6 +8,10 @@ set -e
# arguments provided.
test -z "$POSH_VERSION" && set -u
+log_info() {
+ >&2 printf "pvscheck.sh: %s\n" "$@"
+}
+
get_jobs_num() {
if [ -n "${TRAVIS:-}" ] ; then
# HACK: /proc/cpuinfo on Travis CI is misleading, so hardcode 1.
@@ -261,6 +265,11 @@ install_pvs() {(
cd "$tgt"
+ if test -d pvs-studio ; then
+ log_info 'install_pvs: "pvs-studio" directory already exists, skipping install'
+ return 0
+ fi
+
mkdir pvs-studio
cd pvs-studio