Redirect stow output to /dev/null on pre.sh

master
Ian Mancini 5 years ago
parent e07d16e626
commit e1f450223d

@ -4,13 +4,16 @@ echo "Unlinking individual dotfiles"
if [ -L "$HOME/.Xresources" ]; then if [ -L "$HOME/.Xresources" ]; then
unlink $HOME/.Xresources unlink $HOME/.Xresources
fi fi
if [ -L "$HOME/.Xdefaults " ]; then
unlink $HOME/.Xdefaults
fi
if [ -d "$HOME/.dotfiles" ]; then if [ -d "$HOME/.dotfiles" ]; then
OLDIR=$PWD OLDIR=$PWD
cd $HOME/.dotfiles cd $HOME/.dotfiles
for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do
stow -D -d $HOME/.dotfiles -t $HOME $dir stow -D -d $HOME/.dotfiles -t $HOME $dir &> /dev/null
done done
cd $OLDIR cd $OLDIR

Loading…
Cancel
Save