Simplify dotfiles.sh file exclusion

This commit is contained in:
Riyyi
2019-05-10 03:31:32 +02:00
parent c9ef488b92
commit c657bbb8f9
+2 -5
View File
@@ -7,11 +7,8 @@ fi
PACKAGE_FILE="./packages" PACKAGE_FILE="./packages"
FILES="$(find . \( -path ./.git -o \ EXCLUDE="./.git|$0|$PACKAGE_FILE|./README.md|./screenshot.png"
-path ./dotfiles.sh -o \ FILES="$(find . -type f | awk -v e="^($EXCLUDE)" '$0 !~ e { print $0 }')"
-path $PACKAGE_FILE -o \
-path ./README.md -o \
-path ./screenshot.png \) -prune -o -type f -print)"
help() { help() {
B=$(tput bold) B=$(tput bold)