arch/git-pull

7 lines
328 B
Plaintext
Raw Normal View History

2021-07-01 12:42:16 +02:00
#!/bin/bash
git pull || exit $?
git submodule foreach 'git checkout master || git checkout main' || exit $?
2022-05-12 12:50:47 +02:00
# Sleep after each `git pull` to avoid `429 too many requests`.
git submodule foreach 'sleep 0.25s; if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'