mirror of https://gitlab.com/dabruh/dotfiles.git
Greatly improved install speed.
This commit is contained in:
parent
e7d8e32309
commit
40ecdfd202
|
@ -1,2 +1 @@
|
||||||
^\.local\/bin
|
^\.local(\/bin|\/share\/xrandr)
|
||||||
^\.local\/share\/xrandr
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
^src
|
^(\.install|(install|setup_system)\.sh|src|README\.md)$
|
||||||
^\README\.md
|
|
||||||
^\.install
|
|
||||||
^install\.sh$
|
|
||||||
^setup_system\.sh$
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue