diff --git a/README.md b/README.md index 8604c73..9b2a563 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,8 @@ Do the following to empty the ES docker volume: ``` docker-compose stop -rm -r $(docker volume inspect zammaddockercompose_elasticsearch-data | grep Mountpoint | sed -e 's#.*": "##g' -e 's#",##')/* +set -o pipefail DOCKER_VOLUME="$(docker volume inspect zammaddockercompose_elasticsearch-data | grep Mountpoint | sed -e 's#.*": "##g' -e 's#",##')/*" +echo "${DOCKER_VOLUME}" #check this is a valid docker volume path! if not do not proceed or you might loose data! docker-compose start ```