arch/git-pull

7 lines
325 B
Bash
Executable File

#!/bin/bash
git pull || exit $?
git submodule foreach 'git checkout master || git checkout main' || exit $?
# Sleep after each `git pull` to avoid `429 too many requests`.
git submodule foreach 'sleep 2s; if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'