mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
repair deployment checks
This commit is contained in:
parent
67e0447ea4
commit
b9d6a4c027
1 changed files with 5 additions and 2 deletions
|
@ -20,24 +20,27 @@ if [ "x$DEPLOY_BRANCH" != "xmaster" ]; then
|
|||
if [ "x$input" != "xyes" ]; then
|
||||
exit 2
|
||||
fi
|
||||
echo ""
|
||||
fi
|
||||
|
||||
if [ `git rev-parse --verify origin/$DEPLOY_BRANCH` != `git rev-parse --verify $DEPLOY_BRANCH` ]; then
|
||||
echo "You have commits on the master branch not pushed to origin yet. They would not be deployed."
|
||||
echo "You have commits on the $DEPLOY_BRANCH branch not pushed to origin yet. They would not be deployed."
|
||||
echo "do you still which to deploy what's already in the repo? then type yes"
|
||||
read -p "" input
|
||||
if [ "x$input" != "xyes" ]; then
|
||||
exit 2
|
||||
fi
|
||||
echo ""
|
||||
fi
|
||||
|
||||
if ! (git diff --exit-code >/dev/null || git diff --cached --exit-code >/dev/null); then
|
||||
if ! (git diff --exit-code >/dev/null && git diff --cached --exit-code >/dev/null); then
|
||||
echo "You have uncomitted changes. They would not be deployed."
|
||||
echo "do you still which to deploy what's already in the repo? then type yes"
|
||||
read -p "" input
|
||||
if [ "x$input" != "xyes" ]; then
|
||||
exit 2
|
||||
fi
|
||||
echo ""
|
||||
fi
|
||||
|
||||
for host in lb.dus.c3voc.de lb.alb.c3voc.de; do
|
||||
|
|
Loading…
Reference in a new issue