ソースを参照

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
 # Find the series directory
+if echo "${SERIES}" | grep -qE "\.\.?/"; then
+	SERIES="`cd "${SERIES}" && pwd`"
+fi
 if echo "${SERIES}" | grep -q "/"; then
 if echo "${SERIES}" | grep -q "/"; then
 	SERIES_DIR="${SERIES}"
 	SERIES_DIR="${SERIES}"
 else
 else