Browse Source

Simplify dotfiles.sh file exclusion

master
Riyyi 6 years ago
parent
commit
c657bbb8f9
  1. 7
      dotfiles.sh

7
dotfiles.sh

@ -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)

Loading…
Cancel
Save