dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 48a2ca24d1e849db5f9998fbf8ca4ed0a48c0eb9
parent 3cbd9c54629abe9cf9198b304c83fd18b8363f2d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat,  2 Jun 2018 23:05:02 -0400

Make dotfiles updates silent

Diffstat:
M.local/bin/my | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -328,14 +328,14 @@ case $command in [ ! "$status" = "" ] && git pull --no-commit > /dev/null 2>&1 elif [ -d "$HOME/.dotfiles_tgz" ] then - curl https://danielmoch.com/static/dotfiles.tar.gz > /tmp/dotfiles.tgz.$$ + curl -s https://danielmoch.com/static/dotfiles.tar.gz > /tmp/dotfiles.tgz.$$ oldsum=`shasum -a 256 "$HOME/.dotfiles_tgz/dotfiles.tar.gz" | awk '{print $1}'` newsum=`shasum -a 256 "/tmp/dotfiles.tgz.$$" | awk '{print $1}'` if [ ! "$oldsum" = "$newsum" ] then mv /tmp/dotfiles.tgz.$$ "$HOME/.dotfiles_tgz/dotfiles.tar.gz" cd "$HOME" - tar xzvf .dotfiles_tgz/dotfiles.tar.gz + tar xzf .dotfiles_tgz/dotfiles.tar.gz else rm /tmp/dotfiles.tgz.$$ fi