From 32f7de6cfc6992b30e6cb936e66d6885592ab716 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 15 Feb 2013 17:59:11 -0500 Subject: [PATCH] look up BOARD automatically --- .bin/cros-board | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5