summaryrefslogtreecommitdiffstats
path: root/patches/patch-chromium.sh
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-06-19 09:43:55 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-06-19 09:43:55 +0200
commitfc72738131a7411e5b2a88407c3cb3f92601d2e0 (patch)
tree22e61d264cf70f0574185e0f84155f20fd537477 /patches/patch-chromium.sh
parent05845de376282ce7e1e84f64bad71eb8c1ee6934 (diff)
Allow running patch-chromium.sh from any directory.
Diffstat (limited to 'patches/patch-chromium.sh')
-rwxr-xr-xpatches/patch-chromium.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/patch-chromium.sh b/patches/patch-chromium.sh
index 5abc44203..102e51d44 100755
--- a/patches/patch-chromium.sh
+++ b/patches/patch-chromium.sh
@@ -6,7 +6,7 @@ if [ -z $CHROMIUM_SRC_DIR -o ! -d $CHROMIUM_SRC_DIR ]; then
exit 1;
fi
-PATCH_DIR=$PWD
+PATCH_DIR="$( cd "$( dirname "$0" )" && pwd )"
DEPOT_TOOLS=$CHROMIUM_SRC_DIR/../depot_tools
cd $CHROMIUM_SRC_DIR