소스 검색

Deal with varied usage

Zachary Kotlarek 13 년 전
부모
커밋
b55ddb98f6
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      findTorrent.sh

+ 3 - 0
findTorrent.sh

@@ -11,6 +11,9 @@ usage() {
 }
 
 # Find the series directory
+if echo "${SERIES}" | grep -qE "\.\.?/"; then
+	SERIES="`cd "${SERIES}" && pwd`"
+fi
 if echo "${SERIES}" | grep -q "/"; then
 	SERIES_DIR="${SERIES}"
 else