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
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
# provide a list of jdks, where the certificates will be added | |
$java_homes = @("C:\Program Files\Java\jdk1.8.0_121\jre", "C:\Atlassian\Bitbucket\Installation\5.0.1\jre") | |
# place the root cert in the directory of this script and call it root.cer | |
$root_cert = Join-Path $scriptPath "rootCa.cer" | |
# place the intermediat cert in the directory of this script and call it intermediate.cer | |
$intermediate_cert = Join-Path $scriptPath "intermediateCa.cer" | |
foreach($java_home in $java_homes) | |
{ |
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
GIT_VERSION=`git --version | awk '{print $3}'` | |
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash" | |
PROFILE="$HOME/.profile" | |
echo "Downloading git-completion for git version: $GIT_VERSION..." | |
if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then | |
echo "ERROR: Couldn't download completion script. Make sure you have a working internet connection." && exit 1 | |
fi |