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"