From 40ecdfd202402a526f718554cc6d70d0b09e72ba Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Sun, 5 Jun 2022 00:05:50 +0200 Subject: [PATCH] Greatly improved install speed. --- .installer/executables | 3 +-- .installer/ignored | 6 +----- install.sh | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.installer/executables b/.installer/executables index 02e3713..a96608a 100755 --- a/.installer/executables +++ b/.installer/executables @@ -1,2 +1 @@ -^\.local\/bin -^\.local\/share\/xrandr +^\.local(\/bin|\/share\/xrandr) diff --git a/.installer/ignored b/.installer/ignored index e9effb2..76975e0 100755 --- a/.installer/ignored +++ b/.installer/ignored @@ -1,5 +1 @@ -^src -^\README\.md -^\.install -^install\.sh$ -^setup_system\.sh$ +^(\.install|(install|setup_system)\.sh|src|README\.md)$ diff --git a/install.sh b/install.sh index 5a2b35f..3458696 100755 --- a/install.sh +++ b/install.sh @@ -41,14 +41,14 @@ function install() { echo "Copying files... 💾" while IFS= read -r file; do + [[ "$file" =~ ".git"* ]] && continue + perform_copy=true file="${file#"$SCRIPT_DIR/"}" dir="$(dirname "$HOME/$file")" src="$SCRIPT_DIR/$file" dst="$HOME/$file" - grep -Eq "^\.git(ignore|/)" <<<"$file" && continue - if is_ignored "$file"; then echo "IGNORE: '$file'" continue