dotfiles/solve-stow.sh

12 lines
221 B
Bash
Raw Permalink Normal View History

#! /bin/sh
stow -nv $1 2>&1 \
| sed -n 's/ \* existing target is neither a link nor a directory: //p' \
| while read i; do
echo Backup up ../$i to ../$i.back
mv ../$i ../$i.back
#rm -f ../$i
done
2017-02-14 14:52:13 +01:00
stow $1