Merge pull request #982 from MartinNowak/issue759

partly resolve #759
This commit is contained in:
Mislav Marohnić 2017-11-29 15:37:22 +01:00 committed by GitHub
commit 5183e32887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ mkdir -p "$SHIM_PATH"
# to stderr and exit with a non-zero status.
set -o noclobber
{ echo > "$PROTOTYPE_SHIM_PATH"
} 2>/dev/null ||
} 2>| /dev/null ||
{ if [ -w "$SHIM_PATH" ]; then
echo "rbenv: cannot rehash: $PROTOTYPE_SHIM_PATH exists"
else