[sdocker] fix bracing

This commit is contained in:
Mathieu Maret 2015-12-14 16:37:59 +01:00
parent d6763ca8e8
commit 407c0d6de2

View File

@ -199,7 +199,7 @@ sdocker (){
AOSP_ARGS=${AOSP_ARGS:--it} AOSP_ARGS=${AOSP_ARGS:--it}
img=$(docker ps | grep $1 | awk '{print $1}'); img=$(docker ps | grep $1 | awk '{print $1}');
if [ -z $img ]; then if [ -z $img ]; then
img=$(docker ps -a | grep $1 | awk '{print $1}') | head -1; img=$(docker ps -a | grep $1 | awk '{print $1}' | head -1);
if [ -z $img ]; then if [ -z $img ]; then
echo "Running a new container" echo "Running a new container"
docker run ${AOSP_ARGS} ${=SSH_AUTH_ARGS} -v ${AOSP_IMAGE}:/aosp/Project $1 docker run ${AOSP_ARGS} ${=SSH_AUTH_ARGS} -v ${AOSP_IMAGE}:/aosp/Project $1