aboutsummaryrefslogtreecommitdiffstats
path: root/bin/gettext-merge
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gettext-merge')
-rwxr-xr-xbin/gettext-merge17
1 files changed, 1 insertions, 16 deletions
diff --git a/bin/gettext-merge b/bin/gettext-merge
index 84aa4fdb7..af63fcb59 100755
--- a/bin/gettext-merge
+++ b/bin/gettext-merge
@@ -6,22 +6,7 @@
# Copyright (c) 2011 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
-# Yuck
-if [ -e ../../locale ]
-then
- cd ../../
-else if [ -e ../locale ]
-then
- cd ../
-else if [ -e locale ]
-then
- cd .
-else
- echo "Please run with current directory fixmystreet"
- exit 1
-fi
-fi
-fi
+cd "$(dirname $(readlink -f $BASH_SOURCE))/.."
for X in locale/*.UTF-8
do