From 6456e74c640c9c34dfe4255f39042f3bd9a4af02 Mon Sep 17 00:00:00 2001 From: Karsten Hachmeister Date: Sat, 16 Jul 2022 20:33:04 +0200 Subject: [PATCH] exclude lib directory --- .config/yadm/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 0363085..fedacfc 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -29,7 +29,7 @@ if [[ ! -d "$BOOTSTRAP_D" ]]; then exit 1 fi -find -L "$BOOTSTRAP_D" -type f | sort | while IFS= read -r bootstrap; do +find -L "$BOOTSTRAP_D" -type f -not -path "$BOOTSTRAP_LIB/*" | sort | while IFS= read -r bootstrap; do if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then if ! "$bootstrap"; then echo "Error: bootstrap '$bootstrap' failed" >&2