Browse Source

Continuous Integration: Change else-if to if, so that when multiple natives have been changed that multiple commits are issued.

MeFisto94 6 years ago
parent
commit
6aac1a21bd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      private/upload_native.sh

+ 4 - 4
private/upload_native.sh

@@ -25,18 +25,18 @@ if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
     git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-elif [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
+fi
+if [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
     native_changes_common
     git add -v -- jme3-bullet-native-android/libs/
     git commit -v -m "[ci skip] android bullet: update natives"
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-elif [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
+fi
+if [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
     native_changes_common
     git add -v -- jme3-android-native/libs/
     git commit -v -m "[ci skip] android: update natives"
     git pull -q --rebase
     git push [email protected]:jMonkeyEngine/jmonkeyengine.git
-else
-    echo No native changes.
 fi