Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
fixed error caused by shell exit code. 0 is truegit add build.sh run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sloppycoder committed Jan 29, 2015
1 parent a63833e commit 0cec11f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ set -o errexit

(
cd java-base
#docker build --rm --tag sloppycoder/java-base .
docker build --rm --tag sloppycoder/java-base .
)

for MODULE in $(ls -d atl-bamboo*)
for MODULE in $(ls -d atl-*)
do
(
echo building $MODULE
Expand Down
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ echo "
is_container_running() {

if [ "$(docker inspect -f '{{ .State.Running }}' $1 2> /dev/null)" = "true" ]; then
return 1
else
return 0
else
return 1
fi
}


stop_and_rm_container() {

is_container_running $1 || docker stop $1
is_container_running $1 && docker stop $1
( docker ps -a | grep -q $1 ) && docker rm $1
}

Expand Down

0 comments on commit 0cec11f

Please sign in to comment.