update.sh 493 B

12345678910111213141516
  1. #!/bin/bash
  2. # Update Nextcloud server and apps from latest git stable28
  3. # For local development environment
  4. # Use from Nextcloud server folder with `./build/update.sh`
  5. # Update server
  6. printf "\n\033[1m${PWD##*/}\033[0m\n"
  7. git checkout stable28
  8. git pull --quiet -p
  9. git --no-pager log -3 --pretty=format:"%h %Cblue%ar%x09%an %Creset%s"
  10. printf "\n"
  11. git branch --merged stable28 | grep -v "stable28$" | xargs git branch -d
  12. git submodule update --init
  13. # Update apps
  14. source ./build/update-apps.sh