make a shortcut for repo sync
This commit is contained in:
parent
0b52e8bad7
commit
124f8f37cd
1 changed files with 11 additions and 1 deletions
|
@ -1,12 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
onlystatic=""
|
||||
|
||||
if [ $# -gt 1 ]; then
|
||||
onlystatic=yes
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
for repo in ~/.ctt \
|
||||
~/bin \
|
||||
~/vcs/notes \
|
||||
~/vcs/nico-dot-cdist \
|
||||
~/vcs/cdist-workdir \
|
||||
~/vcs/cdist-workdir/dot-cdist \
|
||||
~/.password-store \
|
||||
; do
|
||||
echo $repo
|
||||
|
@ -35,6 +41,10 @@ done
|
|||
# We cannot commit as we do not know the state, but we
|
||||
# can ensure everything committed before is pushed out
|
||||
|
||||
if [ $onlystatic ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set +e
|
||||
|
||||
for repo in ~/vcs/*; do
|
||||
|
|
Loading…
Reference in a new issue