🏗 update scripts to work on ubuntu

This commit is contained in:
2020-11-02 20:07:39 -05:00
parent b3bb7ea3ff
commit a43cc8ce5c
5 changed files with 93 additions and 40 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
function install_latest() {
version=$(asdf list-all $1 | grep -v '[a-z]' | tail -1)
@ -10,15 +10,26 @@ echo "* Updating homesick..."
homesick pull
homesick symlink
echo "* Restoring mackup..."
mackup restore
case "$OSTYPE" in
darwin*)
echo "* Restoring mackup..."
mackup restore
echo "* Homebrew updates..."
brew bundle --global --no-lock
brew upgrade
echo "* Upgrading mac app store apps..."
mas upgrade
;;
linux*)
sudo apt update && sudo apt upgrade
sudo snap refresh
;;
esac
echo "* Homebrew updates..."
brew bundle --global --no-lock
brew upgrade
echo "* Upgrading mac app store apps..."
mas upgrade
echo "* asdf update..."
export R_CONFIGURE_OPTIONS="--with-x=no"