Skip to content

Commit

Permalink
feat(upgrades): update upgrade script for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed Aug 28, 2020
1 parent aeff475 commit 88b25fe
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ _remove() {
info "Remove step"
brew uninstall --ignore-dependencies node

info "Remove Microsoft Teams"
brew cask uninstall microsft-teams
}

_add() {
Expand All @@ -37,9 +35,6 @@ _configure() {

info "Configure step"

info "Install svn"
brew install svn

info "Install new asdf-plugins version"
asdf install nodejs 14.8.0
asdf install java adoptopenjdk-14.0.2+12
Expand Down
62 changes: 62 additions & 0 deletions upgrades/from-9.0.0-to-9.1.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/usr/bin/env bash

# Export dotfiles folder
DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')"

#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/symlinks/.exports

# Load functions
#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/lib/functions

_remove() {
# ---------------------------------------------
# Uninstall not needed anymore
# ---------------------------------------------

info "Remove step"
brew uninstall --ignore-dependencies node

info "Remove Microsoft Teams"
brew cask uninstall microsft-teams
}

_add() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Add step"

info "Install svn"
brew install svn
}

_configure() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Configure step"
}

_cleanup () {
# ---------------------------------------------
# Cleanup and finish
# ---------------------------------------------

info "Cleanup step"

#shellcheck source=/dev/null
. "$DOTFILES_FOLDER"/macos/cleanup.sh
}

execute() {
_remove
_add
_configure
_cleanup
}

execute 2>&1 | tee -a "$DOTFILE_LOG_FILE"
59 changes: 59 additions & 0 deletions upgrades/from-9.1.0-to-9.2.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash

# Export dotfiles folder
DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')"

#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/symlinks/.exports

# Load functions
#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/lib/functions

_remove() {
# ---------------------------------------------
# Uninstall not needed anymore
# ---------------------------------------------

info "Remove step"
brew uninstall --ignore-dependencies node
}

_add() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Add step"

info "Install fanny"
brew cask install fanny
}

_configure() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Configure step"
}

_cleanup () {
# ---------------------------------------------
# Cleanup and finish
# ---------------------------------------------

info "Cleanup step"

#shellcheck source=/dev/null
. "$DOTFILES_FOLDER"/macos/cleanup.sh
}

execute() {
_remove
_add
_configure
_cleanup
}

execute 2>&1 | tee -a "$DOTFILE_LOG_FILE"

0 comments on commit 88b25fe

Please sign in to comment.