Fix messages and rebuild without cache

This commit is contained in:
andryyy
2016-12-09 20:52:19 +01:00
parent 5b9e598f6f
commit 1715a7a871
10 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -12,11 +12,11 @@ if [[ ! -z $(docker ps -af "name=${NAME}" -q) ]]; then
fi
build() {
docker build -t sogo data/Dockerfiles/sogo/.
docker build --no-cache -t sogo data/Dockerfiles/sogo/.
}
if [[ ! -z "$(docker images -q sogo)" ]]; then
read -r -p "Found image locally. Rebuild anyway? [y/N] " response
read -r -p "Found image locally. Delete local and rebuild without cache anyway? [y/N] " response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y)$ ]]; then
docker rmi sogo