update.sh 493 B

12345678910111213141516
  1. #!/bin/bash
  2. # Update Nextcloud server and apps from latest git stable22
  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 stable22
  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 stable22 | grep -v "stable22$" | xargs git branch -d
  12. git submodule update --init
  13. # Update apps
  14. source ./build/update-apps.sh