From b028d884c548e03d43cdac0d0f4f4ed5381a369d Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Fri, 18 Jul 2014 23:48:18 +0200 Subject: [PATCH] Fix some typos --- README.md | 2 +- run.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e420de7..9728a37 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The main working directory is a shared folder on the host system, so the Docker **NOTES:** * You will need to [install Docker][Docker_Installation] to proceed! -* If an image does not exists, ```docker build``` is executed first +* If an image does not exist, ```docker build``` is executed first * When running ```docker build```, the whole folder incl. the "android" working directory is transferred to the Docker daemon. The only way to work around this currently is to move the "android" folder away, then rebuild, and move it back into place again. For more information, see [dotcloud/docker#2224]. diff --git a/run.sh b/run.sh index b34098f..4338b00 100755 --- a/run.sh +++ b/run.sh @@ -7,8 +7,8 @@ CONTAINER_HOME=/home/cmbuild CONTAINER=cyanogenmod REPOSITORY=stucki/cyanogenmod -# Create a shared folder which will be used as working directory if it -# does not already exists. +# Create a shared folder which will be used as working directory if it +# does not already exist. mkdir -p $SOURCE # Build image if needed @@ -20,15 +20,15 @@ elif [[ -z $IMAGE_EXISTS ]]; then docker build --no-cache --rm -t $REPOSITORY . fi -# With the given name $CONTAINER, reconnect to running container, start -# an existing/stopped container or run a new one if one does not exists. +# With the given name $CONTAINER, reconnect to running container, start +# an existing/stopped container or run a new one if one does not exist. IS_RUNNING=$(docker inspect -f '{{.State.Running}}' $CONTAINER 2>/dev/null) if [[ $IS_RUNNING == "true" ]]; then docker attach $CONTAINER elif [[ $IS_RUNNING == "false" ]]; then docker start -i $CONTAINER else - docker run -v $SOURCE:$CONTAINER_HOME/android -i -t --name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash"; + docker run -v $SOURCE:$CONTAINER_HOME/android -i -t --name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash" fi exit $?