소스 검색

Fixes rbenv on OpenBSD and any other systems that don't support head -c

pull/360/head^2
wmoxam 12 년 전
부모
커밋
2f5d9a6f90
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      libexec/rbenv-version-file-read

+ 1
- 1
libexec/rbenv-version-file-read 파일 보기

@ -8,7 +8,7 @@ VERSION_FILE="$1"
if [ -e "$VERSION_FILE" ]; then
# Read the first non-whitespace word from the specified version file.
# Be careful not to load it whole in case there's something crazy in it.
words=( $(head -c 1024 "$VERSION_FILE") )
words=( $(cut -b 1-1024 "$VERSION_FILE") )
version="${words[0]}"
if [ -n "$version" ]; then

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