Greatly improved install speed.

This commit is contained in:
dabruh 2022-06-05 00:05:50 +02:00
parent e7d8e32309
commit 40ecdfd202
3 changed files with 4 additions and 9 deletions

View File

@ -1,2 +1 @@
^\.local\/bin
^\.local\/share\/xrandr
^\.local(\/bin|\/share\/xrandr)

View File

@ -1,5 +1 @@
^src
^\README\.md
^\.install
^install\.sh$
^setup_system\.sh$
^(\.install|(install|setup_system)\.sh|src|README\.md)$

View File

@ -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