Browse Source

Tests: allow running test/run from every directory

Daniel Hahler 11 năm trước cách đây
mục cha
commit
18cc9ae8cc
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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