mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
scripts/vim-patch.sh: use privileged mode (set -p)
Without this the "cd scripts/.." might change to another dir (since CDPATH is looked at before a local path), and then NEOVIM_SOURCE_DIR might end up being "/somewhere/else\n/somewhere/else" (since the "cd" prints the dir already in that case). Closes https://github.com/neovim/neovim/pull/5213.
This commit is contained in:
parent
add41dca98
commit
3e00dc4477
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user