You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.sh 485B

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