Skip to content
Snippets Groups Projects
Verified Commit 3ddd61d6 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[docker_test.sh] Quotes strike again

parent 91495dc5
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
usage() {
echo -e "usage:\t$0 DIRECTORY, e.g. $0 pica-mattermost"
echo -e "\tDIRECTORY : name of the directory containing docker-compose.yml\n"
......@@ -82,7 +84,7 @@ done
echo -e "\n==== Remove and re-create named external volumes ===="
for v in $(docker-compose config --volumes); do
res=$(grep $v -A 1 docker-compose.yml | grep 'external' || true)
if [ ! -z $res ]; then
if [ ! -z "$res" ]; then
# Don't fail if volume does not exists
docker volume rm "$v" || true
docker volume create "$v"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment