ソースを参照

Merge branch 'master' of github.com:profplump/UberZach-Video

Zachary Kotlarek 12 年 前
親
コミット
de374da2b0
1 ファイル変更、1 行追加、2 行削除
  1. 1 2
      sync.sh

+ 1 - 2
sync.sh

@@ -36,8 +36,7 @@ fi
 
 # Allow usage with absolute local paths
 if [ "`echo "${SUB_DIR}" | head -c 1`" == '/' ]; then
-	BASE_LOCAL="`dirname "${SUB_DIR}"`"
-	SUB_DIR="`basename "${SUB_DIR}"`"
+	SUB_DIR="`echo "${SUB_DIR}" | sed "s%${BASE_LOCAL}/%%"`"
 fi
 
 # Sanity checks