瀏覽代碼

Tests: allow running test/run from every directory

Daniel Hahler 11 年之前
父節點
當前提交
18cc9ae8cc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/run

+ 3 - 0
test/run

@@ -1,5 +1,8 @@
 #!/usr/bin/env bash
 
+# Change to directory of this script.
+cd "${0%/*}"
+
 # Look for existing vader installation.
 vader=( ${HOME}/.vim/*bundle*/vader*/plugin/vader.vim )
 if [ -f ${vader[0]} ]; then