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
|
#!/bin/sh
|
||||||
|
|
||||||
|
onlystatic=""
|
||||||
|
|
||||||
|
if [ $# -gt 1 ]; then
|
||||||
|
onlystatic=yes
|
||||||
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
for repo in ~/.ctt \
|
for repo in ~/.ctt \
|
||||||
~/bin \
|
~/bin \
|
||||||
~/vcs/notes \
|
~/vcs/notes \
|
||||||
~/vcs/nico-dot-cdist \
|
~/vcs/nico-dot-cdist \
|
||||||
~/vcs/cdist-workdir \
|
~/vcs/cdist-workdir/dot-cdist \
|
||||||
~/.password-store \
|
~/.password-store \
|
||||||
; do
|
; do
|
||||||
echo $repo
|
echo $repo
|
||||||
|
@ -35,6 +41,10 @@ done
|
||||||
# We cannot commit as we do not know the state, but we
|
# We cannot commit as we do not know the state, but we
|
||||||
# can ensure everything committed before is pushed out
|
# can ensure everything committed before is pushed out
|
||||||
|
|
||||||
|
if [ $onlystatic ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
for repo in ~/vcs/*; do
|
for repo in ~/vcs/*; do
|
||||||
|
|
Loading…
Reference in a new issue