From 93787f15acec6ac76156ab2e04f8472e33320e21 Mon Sep 17 00:00:00 2001 From: Wyatt Olson Date: Thu, 16 Sep 2010 07:51:46 -0600 Subject: [PATCH] Added check that we are running from the proper location --- tools/generateTranslationDiffs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/generateTranslationDiffs.sh b/tools/generateTranslationDiffs.sh index 907bc8d2d..43b5393a4 100755 --- a/tools/generateTranslationDiffs.sh +++ b/tools/generateTranslationDiffs.sh @@ -11,6 +11,10 @@ TEMP=temp_file PATH=rtdata/languages cd $PATH +if [[ $? != 0 ]]; then + echo "You must run this script from the root of the project." + exit +fi #First thing, we want to strip default of any !s and duplicates. cat "default" | grep -v '^!' | sort | uniq > "$TEMP"