-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Around" | ||
brew install around | ||
} | ||
|
||
_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" |