From 86308621e8da9fd02999f214103cd0c7aa19c45d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Dec 2016 03:37:05 -0500 Subject: [PATCH] -bin/update (replaced by bootstrap) --- bin/update | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100755 bin/update diff --git a/bin/update b/bin/update deleted file mode 100755 index a1a1d1f1..00000000 --- a/bin/update +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit,nounset - -update() { - [[ -d $1 ]] || return - - pushd "$1" - local L=$(git rev-parse @) - local R=$(git rev-parse @{u}) - if [[ $L != $R ]] - then - echo "Updating $(basename $(pwd))" - shift - ${@:-git pull} - fi - popd -} - -# Update OS -case "$OSTYPE" in - darwin*) - brew update && brew upgrade && brew cleanup - ;; - linux*) - if command -v pacman >/dev/null; then - sudo pacman -Syu --noconfirm - elif command -v apt-get >/dev/null; then - sudo apt-get update && sudo apt-get upgrade -y - fi -esac - -$DOTFILES/bootstrap update - -# Update editors -update ~/.emacs.d "make update" -update ~/.vim "make update" - -# Others -update ~/.zgen -update ~/.cask -