aboutsummaryrefslogtreecommitdiff
path: root/html-test/run
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-22 23:28:19 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-22 23:40:28 +0200
commitf2b7e4d0b7be232841e86edabf5152f242976105 (patch)
treec88740db748a2e25fbe6ae540fcf34e332c527f7 /html-test/run
parent2555cc37c9e9c0eeb9f7fbddb9599bb6fae3e982 (diff)
Improve portability of test runner scripts.
Diffstat (limited to 'html-test/run')
-rwxr-xr-xhtml-test/run5
1 files changed, 3 insertions, 2 deletions
diff --git a/html-test/run b/html-test/run
index 5e17ad0f..3e72be80 100755
--- a/html-test/run
+++ b/html-test/run
@@ -1,5 +1,6 @@
-#!/bin/bash
+#!/usr/bin/env bash
export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
-runhaskell -i:"$LIB_PATH" "Main.hs" $@
+MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
+runhaskell -i:"$LIB_PATH" $MAIN_PATH $@