Improve exclude pattern for dotfile deployment

This commit is contained in:
2018-12-18 11:14:48 -08:00
parent 8e06c58a4e
commit 7278f623b4

View File

@@ -4,7 +4,7 @@ echo "Deploying dotfiles..."
pushd $HOME &> /dev/null
FILES=($(ls -p .dotfiles | grep -v / | grep -v deploy))
FILES=($(ls -p .dotfiles | egrep -v "/\$|\\.sh|TODO"))
for file in ${FILES[@]}; do
mv .$file .${file}.bak