Skip to content

Commit

Permalink
[scripts] ,project-configs-backup: Use find instead of fd
Browse files Browse the repository at this point in the history
find is more universal plus fd was just spiking up my cpu 100
  • Loading branch information
meain committed Feb 2, 2024
1 parent 9623a7c commit 929d76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/.local/bin/random/,projects-config-backup
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mkdir -p "$SAVEPATH"

backup_loc() {
tput el && echo "Saving $1..."
fd -HI '^\.git$' "$HOME/dev" | grep -v '/temp/' |
find "$HOME/dev" -type d -name '.git' | grep -v '/temp/' |
while read -r path; do
dir="$(dirname "$path")"
[ -e "$dir/$1" ] || continue
Expand Down

0 comments on commit 929d76e

Please sign in to comment.