changeset 553:752e5eea7ea8

.bash_mozilla
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 19 Nov 2013 13:09:36 -0800
parents 040060217df6
children 8ef38b16dcb9
files .bash_mozilla
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.bash_mozilla	Tue Nov 19 12:50:41 2013 -0800
+++ b/.bash_mozilla	Tue Nov 19 13:09:36 2013 -0800
@@ -22,8 +22,17 @@
     name=$1
     for _MOZCONFIG in "${MOZCONFIGS}/${name}" "${MOZCONFIGS}/mozconfig.${name}"
     do
-        echo $_MOZCONFIG
+        if [[ -e "${_MOZCONFIG}" ]]
+        then
+            echo "Using MOZCONFIG : ${_MOZCONFIG}"
+            break
+        fi
     done
+    if [[ ! -e "${_MOZCONFIG}" ]]
+    then
+        echo "MOZCONFIG ${name} not found"
+        return 1
+    fi
 else
     # print usage
     echo "Usage: mozconfig <configname>"