diff --git a/bin/xspec.sh b/bin/xspec.sh index 541f3d52a..a5f59dd1c 100755 --- a/bin/xspec.sh +++ b/bin/xspec.sh @@ -207,7 +207,10 @@ fi ## files and dirs ############################################################ ## -TEST_DIR=$(dirname "$XSPEC")/xspec +if [ -z "$TEST_DIR" ] +then + TEST_DIR=$(dirname "$XSPEC")/xspec +fi TARGET_FILE_NAME=$(basename "$XSPEC" | sed 's:\...*$::') if test -n "$XSLT"; then