comparison .bash_mozilla @ 553:752e5eea7ea8

.bash_mozilla
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 19 Nov 2013 13:09:36 -0800
parents 029c7c2c511d
children 8ef38b16dcb9
comparison
equal deleted inserted replaced
552:040060217df6 553:752e5eea7ea8
20 then 20 then
21 # activate the chosen mozconfig 21 # activate the chosen mozconfig
22 name=$1 22 name=$1
23 for _MOZCONFIG in "${MOZCONFIGS}/${name}" "${MOZCONFIGS}/mozconfig.${name}" 23 for _MOZCONFIG in "${MOZCONFIGS}/${name}" "${MOZCONFIGS}/mozconfig.${name}"
24 do 24 do
25 echo $_MOZCONFIG 25 if [[ -e "${_MOZCONFIG}" ]]
26 then
27 echo "Using MOZCONFIG : ${_MOZCONFIG}"
28 break
29 fi
26 done 30 done
31 if [[ ! -e "${_MOZCONFIG}" ]]
32 then
33 echo "MOZCONFIG ${name} not found"
34 return 1
35 fi
27 else 36 else
28 # print usage 37 # print usage
29 echo "Usage: mozconfig <configname>" 38 echo "Usage: mozconfig <configname>"
30 return 1 39 return 1
31 fi 40 fi