Bug 666140: Error out if MOZCONFIG points to a non-existent file. r=khuey

This commit is contained in:
Jezreel Ng 2011-06-24 07:22:40 -07:00
parent 22c9dc99a7
commit 5219048da2

View File

@ -46,6 +46,15 @@
#
topsrcdir=$1
for _config in "$MOZCONFIG" \
"$MOZ_MYCONFIG"
do
if [ -n "$_config" ] && ! [ -f "$_config" ]; then
echo "Specified MOZCONFIG \"$_config\" does not exist!"
exit 1
fi
done
for _config in "$MOZCONFIG" \
"$MOZ_MYCONFIG" \
"$topsrcdir/.mozconfig" \