소스 검색

Deal with an empty result from expand_path

pull/360/head^2
Eric Lindvall 15 년 전
부모
커밋
b81b64453b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      libexec/rbenv-which

+ 5
- 0
libexec/rbenv-which 파일 보기

@ -16,6 +16,11 @@ remove_from_path() {
local path_to_remove="$(expand_path "$1")"
local result=""
if [ -z "$path_to_remove" ]; then
echo "${PATH}"
return
fi
for path in ${PATH//:/$'\n'}; do
path="$(expand_path "$path" || true)"
if [ -n "$path" ] && [ "$path" != "$path_to_remove" ]; then

불러오는 중...
취소
저장