Simplify dotfiles.sh file exclusion
This commit is contained in:
+2
-5
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user