-
Notifications
You must be signed in to change notification settings - Fork 6
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
6 changed files
with
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
export BREW_DOWNLOAD_URL='https://github.com/Homebrew/brew/tarball/master' | ||
|
||
export BREW_INSTALL_FOLDER='/Volumes/Data/Applications/brew' |
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
export GO_LANG_DOWNLOAD_URL='https://storage.googleapis.com/golang/go1.7.3.darwin-amd64.tar.gz' | ||
|
||
export GO_LANG_INSTALL_FOLDER='/Volumes/Data/Applications/go-lang' |
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,40 @@ | ||
#!/bin/bash -e | ||
|
||
function install() | ||
{ | ||
# Clean Up | ||
|
||
initializeFolder "${GO_LANG_INSTALL_FOLDER}" | ||
|
||
# Install | ||
|
||
unzipRemoteFile "${GO_LANG_DOWNLOAD_URL}" "${GO_LANG_INSTALL_FOLDER}" | ||
chown -R "${SUDO_USER}:$(getUserGroupName "${SUDO_USER}")" "${GO_LANG_INSTALL_FOLDER}" | ||
symlinkLocalBin "${GO_LANG_INSTALL_FOLDER}/bin" | ||
ln -f -s "${GO_LANG_INSTALL_FOLDER}" '/usr/local/go' | ||
|
||
# Display Version | ||
|
||
export GOROOT="${GO_LANG_INSTALL_FOLDER}" | ||
displayVersion "$(go version)" | ||
} | ||
|
||
function main() | ||
{ | ||
local -r appFolderPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
source "${appFolderPath}/../../../libraries/util.bash" | ||
source "${appFolderPath}/../attributes/default.bash" | ||
|
||
checkRequireMacSystem | ||
checkRequireRootUser | ||
|
||
header 'INSTALLING GO-LANG' | ||
|
||
# Install | ||
|
||
install | ||
installCleanUp | ||
} | ||
|
||
main "${@}" |
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
export JQ_DOWNLOAD_URL='https://github.com/stedolan/jq/releases/download/jq-1.5/jq-osx-amd64' | ||
|
||
export JQ_INSTALL_FOLDER='/Volumes/Data/Applications/jq' |
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,38 @@ | ||
#!/bin/bash -e | ||
|
||
function install() | ||
{ | ||
# Clean Up | ||
|
||
initializeFolder "${JQ_INSTALL_FOLDER}" | ||
mkdir -p "${JQ_INSTALL_FOLDER}/bin" | ||
|
||
# Install | ||
|
||
downloadFile "${JQ_DOWNLOAD_URL}" "${JQ_INSTALL_FOLDER}/bin/jq" 'true' | ||
chown -R "${SUDO_USER}:$(getUserGroupName "${SUDO_USER}")" "${JQ_INSTALL_FOLDER}" | ||
chmod 755 "${JQ_INSTALL_FOLDER}/bin/jq" | ||
symlinkLocalBin "${JQ_INSTALL_FOLDER}/bin" | ||
|
||
# Display Version | ||
|
||
displayVersion "$("${JQ_INSTALL_FOLDER}/bin/jq" --version)" | ||
} | ||
|
||
function main() | ||
{ | ||
local -r appFolderPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
source "${appFolderPath}/../../../libraries/util.bash" | ||
source "${appFolderPath}/../attributes/default.bash" | ||
|
||
checkRequireMacSystem | ||
checkRequireRootUser | ||
|
||
header 'INSTALLING JQ' | ||
|
||
install | ||
installCleanUp | ||
} | ||
|
||
main "${@}" |
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