Fix script
This commit is contained in:
parent
585ad1f525
commit
6283bd74e5
@ -14,13 +14,15 @@
|
|||||||
# AMO_API_SECRET -||-
|
# AMO_API_SECRET -||-
|
||||||
|
|
||||||
# don't build if nothing has changed, unless overriden via env variable
|
# don't build if nothing has changed, unless overriden via env variable
|
||||||
if [ ! -z "$GIT_COMMIT" && ! -z "$GIT_PREVIOUS_COMMIT" ] ; then
|
if [ ! -z "$GIT_COMMIT" ] ; then
|
||||||
if [ "$GIT_COMMIT" == "$GIT_PREVIOUS_COMMIT" ] ; then
|
if [ ! -z "$GIT_PREVIOUS_COMMIT" ] ; then
|
||||||
if [ $FORCE_BUILD == "true" ] ; then
|
if [ "$GIT_COMMIT" == "$GIT_PREVIOUS_COMMIT" ] ; then
|
||||||
echo "--------------------------------------------"
|
if [ $FORCE_BUILD == "true" ] ; then
|
||||||
echo " Nothing has changed. Aborting build."
|
echo "--------------------------------------------"
|
||||||
echo "--------------------------------------------"
|
echo " Nothing has changed. Aborting build."
|
||||||
exit 0;
|
echo "--------------------------------------------"
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -70,5 +72,5 @@ scp -r ./build-zip/* "ultrawidify-uploader@${RELEASE_SERVER}:${RELEASE_DIRECTORY
|
|||||||
######################################
|
######################################
|
||||||
|
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
echo " Nothing has changed. Aborting build."
|
echo " BUILD FINISHED SUCCESSFULLY"
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user