From 0d92c735898eb07dd0d723441101607d0aee69be Mon Sep 17 00:00:00 2001 From: TimePath Date: Wed, 22 Jun 2016 21:08:44 +1000 Subject: [PATCH] Increase script portability --- qcsrc/tools/compilationunits.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index 0a03de360..2fa17825e 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -cd "$(dirname "$0")" +cd ${0%/*} WORKDIR=../.tmp -- 2.39.2