Added check that we are running from the proper location
This commit is contained in:
@@ -11,6 +11,10 @@ TEMP=temp_file
|
|||||||
PATH=rtdata/languages
|
PATH=rtdata/languages
|
||||||
|
|
||||||
cd $PATH
|
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.
|
#First thing, we want to strip default of any !s and duplicates.
|
||||||
cat "default" | grep -v '^!' | sort | uniq > "$TEMP"
|
cat "default" | grep -v '^!' | sort | uniq > "$TEMP"
|
||||||
|
Reference in New Issue
Block a user