From: TimePath Date: Wed, 22 Jun 2016 11:08:44 +0000 (+1000) Subject: Increase script portability X-Git-Tag: xonotic-v0.8.2~769 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d92c735898eb07dd0d723441101607d0aee69be;p=xonotic%2Fxonotic-data.pk3dir.git Increase script portability --- 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