Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/dotfiles. my dotfiles (.vimrc, .bashrc, etc.)
Something went wrong. Try again.
123456789101112131415161718192021222324#!/bin/bash
set -euo pipefailtest -z ${DEBUG:-} || set -xDOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
# This script installs/updates the packages installed on the system. It is# designed to be run occasionally.echo "Upgrading packages"
. $DOTFILES_DIR/functions.sh
[[ ${debug:-} == "y" ]] && echo "Updating packages."
if [[ $uname == darwin ]]; then brew update brew upgradeelse if . /etc/os-release && [ "$ID_LIKE" = "debian" ]; then sudo apt-get --quiet --quiet update sudo apt-get --quiet --quiet upgrade fifi