From 9b02c2f7181d7b496d57dbba1e6053c3654ee085 Mon Sep 17 00:00:00 2001 From: "Deavon M. McCaffery" Date: Sun, 12 Jan 2020 16:11:43 +0000 Subject: [PATCH] fix: do not remove backup in bootstrap (#42) * do not remove backup in bootstrap * fix execution bit on some scripts * use homebrew to install kind --- bootstrap.sh | 2 -- src/sh/scripts/git-release | 0 src/sh/scripts/kind-install | 12 ++---------- src/zsh/zshrc | 0 4 files changed, 2 insertions(+), 12 deletions(-) mode change 100644 => 100755 src/sh/scripts/git-release mode change 100644 => 100755 src/sh/scripts/kind-install mode change 100644 => 100755 src/zsh/zshrc diff --git a/bootstrap.sh b/bootstrap.sh index ed2768a..51b9492 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -81,8 +81,6 @@ __am_prompt_update() return 0 fi - remove-backup - local PROMPT_CHANGELOG_URI="https://github.com/automotivemastermind/prompt/blob/$PROMPT_COMMIT_REF/CHANGELOG.md" local PROMPT_INSTALL_URI="https://github.com/automotiveMastermind/prompt/archive/$PROMPT_COMMIT_REF.tar.gz" local PROMPT_INTALL_TEMP=$(mktemp -d) diff --git a/src/sh/scripts/git-release b/src/sh/scripts/git-release old mode 100644 new mode 100755 diff --git a/src/sh/scripts/kind-install b/src/sh/scripts/kind-install old mode 100644 new mode 100755 index 2e72f19..e937809 --- a/src/sh/scripts/kind-install +++ b/src/sh/scripts/kind-install @@ -12,16 +12,8 @@ __am_kind_prompt_install() { return 0 fi - # get the uname for the platform and the latest version of kind - local UNAME=$(uname | tr '[:upper:]' '[:lower:]') - local KIND_VERSION=$(git-release kubernetes-sigs kind) - local KIND_URL=https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-${UNAME}-amd64 - - # download the assembly to the bin - curl -Lso $LOCAL_PREFIX/kind $KIND_URL - - # make it executable - chmod +x $LOCAL_PREFIX/kind + # install kind with homebrew now that its available there + brew install kind } __am_kind_prompt_install diff --git a/src/zsh/zshrc b/src/zsh/zshrc old mode 100644 new mode 100755