aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gettext-extract
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-26 21:54:32 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-11-08 11:38:37 +0000
commitb7c33b2f0af8f97cc2789b5166e18afddbb411c7 (patch)
treef579c1bfe149508e29d2b9ce01cdc136c9f2514a /bin/gettext-extract
parent37ed4d4aae659db14f77d96e5da8e2deb922860d (diff)
Update script directory changing so works on Macs.
Diffstat (limited to 'bin/gettext-extract')
-rwxr-xr-xbin/gettext-extract2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract
index 1c0771f9e..f1cd6d28b 100755
--- a/bin/gettext-extract
+++ b/bin/gettext-extract
@@ -7,7 +7,7 @@
# Copyright (c) 2011 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
-cd "$(dirname $(readlink -f $BASH_SOURCE))/.."
+cd "$(cd "$(dirname "$BASH_SOURCE")" && pwd -P)"/..
# Install required code if needed
vendor/bin/carton install --path local-gettext --cpanfile locale/cpanfile --deployment