lib/minke/scripts/minke in minke-1.13.10 vs lib/minke/scripts/minke in minke-1.13.11

- old
+ new

@@ -1,7 +1,7 @@ #!/bin/bash -MINKE_VERSION="1.13.10" +MINKE_VERSION="1.13.11" DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock" NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]') DOCKER_IMAGE="nicholasjackson/minke:${MINKE_VERSION}" @@ -14,11 +14,13 @@ [[ -t 1 ]] && IT="-it" || IT="" if [[ $1 != \generate* ]]; then # Test if we need to mount any special volumes for paths specified in the Gemfile while read -r line; do - l=$(echo $line | sed "s/.*:path *=> *//" | sed "s/['|\"]\(.*\)['|\"]/\1/") - GEM_VOLUMES="${GEM_VOLUMES} -v $l:$l" + if [[ $line != \#* ]]; then + l=$(echo $line | sed "s/.*:path *=> *//" | sed "s/['|\"]\(.*\)['|\"]/\1/") + GEM_VOLUMES="${GEM_VOLUMES} -v $l:$l" + fi done < <(grep :path Gemfile) DIR=$(dirname `pwd`) DOCKER_RUN="docker run ${IT} --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"