summaryrefslogtreecommitdiff
path: root/bin/common/goo
blob: cf7383814bc7cd0c66a8e22a425a3a38a4783c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

exclude="
.cache 
.mozilla
.npm
.git
site-packages
objects
.minecraft/saves
discord
Steam
?eclipse
VisualParadigm
intellij
arduino15"

for dir in $exclude; do
    dirs="$dirs -name \"$dir\" -o "
done
cmd="find ${2:-.} \(${dirs} -false \) -prune -o -type ${1:-f} -mindepth 1 -print"

eval "$cmd" 2>/dev/null