github.com/sharovik/devbot@v1.0.1-0.20240308094637-4a0387c40516/scripts/project-tools/update-events.sh (about) 1 #!/bin/bash 2 3 currentPath=$(pwd) 4 echo "$currentPath" 5 for f in ./events/*; do 6 if [ -d "${f}" ]; then 7 if [ -d "${f}/.git" ]; then 8 printf "%s\n" "${f}" 9 cd "${f}" && git pull && cd "$currentPath" || exit 10 fi; 11 fi 12 done