diff options
| author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-14 18:53:03 +0200 | 
|---|---|---|
| committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-14 18:53:03 +0200 | 
| commit | 612dbb6993c8a548744f29a4d15d6b31325357c8 (patch) | |
| tree | 0d61cee0ea74ac811268d0ffc00d3d55f7174112 /.bin/synchronize-pub-dots | |
| parent | 23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (diff) | |
| download | dots-612dbb6993c8a548744f29a4d15d6b31325357c8.tar.gz | |
Diffstat (limited to '.bin/synchronize-pub-dots')
| -rwxr-xr-x | .bin/synchronize-pub-dots | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/.bin/synchronize-pub-dots b/.bin/synchronize-pub-dots index 8c7a9c4..852a75c 100755 --- a/.bin/synchronize-pub-dots +++ b/.bin/synchronize-pub-dots @@ -2,8 +2,11 @@  set -e +# perform pre-flight checks  command -v yadm git  git rev-parse --is-inside-work-tree +[ "$(yadm rev-parse --show-toplevel)" != "$(git rev-parse --show-toplevel)" ] +  allowed_patterns="-e ^.bin  	-e ^.config/alacritty/ @@ -39,8 +42,6 @@ allowed_patterns="-e ^.bin  	-e ^.zshrc  	" -[ "$(yadm rev-parse --show-toplevel)" != "$(git rev-parse --show-toplevel)" ] -  # retrieve existing files  upstream_files=$(cd "${HOME}" && yadm ls-files)  local_files=$(find . -not -path "./.git*" -not -path ".") |