]> git.wh0rd.org Git - home.git/commitdiff
look up BOARD automatically
authorMike Frysinger <vapier@gentoo.org>
Fri, 15 Feb 2013 22:59:11 +0000 (17:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 15 Feb 2013 22:59:11 +0000 (17:59 -0500)
.bin/cros-board

index 3836746255c6f72d614befaf5777a17f243551f0..93f1bd65b65cf7133e012b20b9c55061eda6fd70 100755 (executable)
@@ -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