mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
pvscheck.sh: Skip install if dir exists
This commit is contained in:
parent
0ccb9704d7
commit
c8e78abaf9
@ -8,6 +8,10 @@ set -e
|
|||||||
# arguments provided.
|
# arguments provided.
|
||||||
test -z "$POSH_VERSION" && set -u
|
test -z "$POSH_VERSION" && set -u
|
||||||
|
|
||||||
|
log_info() {
|
||||||
|
>&2 printf "pvscheck.sh: %s\n" "$@"
|
||||||
|
}
|
||||||
|
|
||||||
get_jobs_num() {
|
get_jobs_num() {
|
||||||
if [ -n "${TRAVIS:-}" ] ; then
|
if [ -n "${TRAVIS:-}" ] ; then
|
||||||
# HACK: /proc/cpuinfo on Travis CI is misleading, so hardcode 1.
|
# HACK: /proc/cpuinfo on Travis CI is misleading, so hardcode 1.
|
||||||
@ -261,6 +265,11 @@ install_pvs() {(
|
|||||||
|
|
||||||
cd "$tgt"
|
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
|
mkdir pvs-studio
|
||||||
cd pvs-studio
|
cd pvs-studio
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user