summaryrefslogtreecommitdiffstats
path: root/.bin/synchronize-pub-dots
diff options
context:
space:
mode:
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.