From: Mike Frysinger Date: Fri, 15 Feb 2013 22:59:11 +0000 (-0500) Subject: look up BOARD automatically X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=32f7de6cfc6992b30e6cb936e66d6885592ab716;p=home.git look up BOARD automatically --- diff --git a/.bin/cros-board b/.bin/cros-board index 3836746..93f1bd6 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -3,8 +3,9 @@ die() { eerror "$*"; exit 1; } set -e -cd ${HOME}/trunk/src/scripts/ +cd "${HOME}/trunk/src/scripts/" +: ${BOARD:=`cat .default_board 2>/dev/null`} if [[ -z ${BOARD} ]] ; then die "missing BOARD" fi