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(\/bin|\/share\/xrandr)
^\.local\/share\/xrandr

View File

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

View File

@ -41,14 +41,14 @@ function install() {
echo "Copying files... 💾" echo "Copying files... 💾"
while IFS= read -r file; do while IFS= read -r file; do
[[ "$file" =~ ".git"* ]] && continue
perform_copy=true perform_copy=true
file="${file#"$SCRIPT_DIR/"}" file="${file#"$SCRIPT_DIR/"}"
dir="$(dirname "$HOME/$file")" dir="$(dirname "$HOME/$file")"
src="$SCRIPT_DIR/$file" src="$SCRIPT_DIR/$file"
dst="$HOME/$file" dst="$HOME/$file"
grep -Eq "^\.git(ignore|/)" <<<"$file" && continue
if is_ignored "$file"; then if is_ignored "$file"; then
echo "IGNORE: '$file'" echo "IGNORE: '$file'"
continue continue