mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
partly resolve #759
- some versions of bash (e.g. 4.3.11) complain about clobbering /dev/null, use bash's explicit >| operator to ignore noclober - not sure if the original #759 report has the same cause - https://github.com/rbenv/rbenv/issues/759#issuecomment-289326891
This commit is contained in:
parent
4f8925abe7
commit
db39044ef6
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ mkdir -p "$SHIM_PATH"
|
||||||
# to stderr and exit with a non-zero status.
|
# to stderr and exit with a non-zero status.
|
||||||
set -o noclobber
|
set -o noclobber
|
||||||
{ echo > "$PROTOTYPE_SHIM_PATH"
|
{ echo > "$PROTOTYPE_SHIM_PATH"
|
||||||
} 2>/dev/null ||
|
} 2>| /dev/null ||
|
||||||
{ if [ -w "$SHIM_PATH" ]; then
|
{ if [ -w "$SHIM_PATH" ]; then
|
||||||
echo "rbenv: cannot rehash: $PROTOTYPE_SHIM_PATH exists"
|
echo "rbenv: cannot rehash: $PROTOTYPE_SHIM_PATH exists"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue