summaryrefslogtreecommitdiffstats
path: root/.bin/synchronize-pub-dots
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2024-05-14 18:53:03 +0200
committerRomain Gonçalves <me@rgoncalves.se>2024-05-14 18:53:03 +0200
commit612dbb6993c8a548744f29a4d15d6b31325357c8 (patch)
tree0d61cee0ea74ac811268d0ffc00d3d55f7174112 /.bin/synchronize-pub-dots
parent23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (diff)
downloaddots-trunk.tar.gz
Tue May 14 06:53:03 PM CEST 2024HEADtrunk
Diffstat (limited to '.bin/synchronize-pub-dots')
-rwxr-xr-x.bin/synchronize-pub-dots5
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 ".")
remember that computers suck.