Improve exclude pattern for dotfile deployment
This commit is contained in:
@@ -4,7 +4,7 @@ echo "Deploying dotfiles..."
|
|||||||
|
|
||||||
pushd $HOME &> /dev/null
|
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
|
for file in ${FILES[@]}; do
|
||||||
mv .$file .${file}.bak
|
mv .$file .${file}.bak
|
||||||
|
|||||||
Reference in New Issue
Block a user