User:X-Savitar/Sub-pages/repo-update-script.sh
Appearance
This script recursively (in the `extensions/` directory) updates extension repositories and their composer dependencies. This script should live in the extensions/
root directory and should be executable (755
).
#!/bin/bash for dir in *; do if [ -d "$dir" ]; then echo -e "\nUpdating $dir extension, please wait...\n"; (cd "$dir" && git pull origin master && composer update) echo -e "\n$dir extension updated..." fi done echo -e "\n\nWell done, all directories updated :)"