From 612dbb6993c8a548744f29a4d15d6b31325357c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 14 May 2024 18:53:03 +0200 Subject: Tue May 14 06:53:03 PM CEST 2024 --- .bin/synchronize-pub-dots | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.bin/synchronize-pub-dots') 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 ".") -- cgit v1.2.3