mirror of https://github.com/captn3m0/Scripts.git
Only try to sync repos that exist. Would sync the PWD otherwise
This commit is contained in:
parent
7a426b9877
commit
3d27656b6b
14
syncrepos
14
syncrepos
|
@ -3,11 +3,13 @@
|
|||
PATH=$PATH:/home/nemo/projects/scripts/
|
||||
|
||||
function sync_repo() {
|
||||
pushd $1
|
||||
git config --bool branch.master.sync true
|
||||
git config --bool branch.master.syncNewFiles true
|
||||
git-sync
|
||||
popd
|
||||
if [[ -d "$1" ]]; then
|
||||
pushd $1
|
||||
git config --bool branch.master.sync true
|
||||
git config --bool branch.master.syncNewFiles true
|
||||
git-sync
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
# xpad-notes
|
||||
|
@ -24,4 +26,4 @@ sync_repo /home/nemo/projects/personal/mobile-passwords
|
|||
# scripts?: NO
|
||||
# imapfilter: YES
|
||||
# /etc: YES
|
||||
# dotfiles: NO
|
||||
# dotfiles: NO
|
||||
|
|
Loading…
Reference in New Issue