Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Fix first install on failed first deployment (#34)
Browse files Browse the repository at this point in the history
* Fix problem with failed first deployment (needs install) as per #32
  • Loading branch information
msiegenthaler authored Dec 21, 2017
1 parent 07acc7b commit 53b0f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/out
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ fi
is_deployed() {
if [ -n "$1" ]; then
set +e
helm status --tiller-namespace $tiller_namespace $1 | grep "STATUS: " > /dev/null
set +o pipefail
helm history --tiller-namespace $tiller_namespace $1 2>&1 | grep "DEPLOYED" > /dev/null
if [ $? = 0 ]; then
# exists
echo true
else
# does not exist
echo false
fi
set -o pipefail
set -e
else
echo false
Expand Down

0 comments on commit 53b0f22

Please sign in to comment.