aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-08-11 12:50:16 -0500
committerGitHub <noreply@github.com>2016-08-11 12:50:16 -0500
commit8c4c366a9ebeff6c549f85316cbc8838fcfae56a (patch)
treef33ebb275bd0f4531770fd2ef62b7c91f6fd075d
parent521ca58ff996b8d0c4674725a2d0c056a9bb8884 (diff)
parent3e00dc44772407fc4393a6e12020a267b356d9bd (diff)
downloadrneovim-8c4c366a9ebeff6c549f85316cbc8838fcfae56a.tar.gz
rneovim-8c4c366a9ebeff6c549f85316cbc8838fcfae56a.tar.bz2
rneovim-8c4c366a9ebeff6c549f85316cbc8838fcfae56a.zip
Merge pull request #5213 from blueyed/unset-cdpath-with-vim-patch
scripts/vim-patch.sh: use "set -p"
-rwxr-xr-xscripts/vim-patch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 3997bd52b1..b552874c27 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -3,6 +3,8 @@
set -e
set -u
set -o pipefail
+# Use priviledged mode, which e.g. skips using CDPATH.
+set -p
readonly NEOVIM_SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
readonly VIM_SOURCE_DIR_DEFAULT="${NEOVIM_SOURCE_DIR}/.vim-src"