From c3b467e0b1c56cf0370db5b448393bed46145922 Mon Sep 17 00:00:00 2001 From: "Janos.Feher" Date: Wed, 11 Apr 2018 09:31:48 +0100 Subject: [PATCH 1/2] Alpine installation script for git-secret. --- install_git-secret.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 install_git-secret.sh diff --git a/install_git-secret.sh b/install_git-secret.sh new file mode 100755 index 0000000..8e15d9f --- /dev/null +++ b/install_git-secret.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# vim: et smartindent sr sw=4 ts=4: +echo "INFO $0: cloning git-secret" +if [[ -z $(command -v make) ]]; then + BUILD_PKGS="make" +fi + +PKGS="$BUILD_PKGS git bash gawk" +apk --no-cache --update add $PKGS + +git clone -q https://github.com/sobolevn/git-secret.git \ +&& cd git-secret \ +&& git remote rm origin \ +&& make \ +&& make install \ +&& rm -rf git-secret \ +&& if [[ ! -z $BUILD_PKGS ]]; then apk --no-cache --purge del $BUILD_PKGS; fi \ +&& rm -rf /var/cache/apk/* \ +&& echo "INFO $0: git-secret installed successfully" + +exit 0 From 7383de56cfc67305d61c896d8377395c4733ff93 Mon Sep 17 00:00:00 2001 From: "Janos.Feher" Date: Wed, 11 Apr 2018 09:40:01 +0100 Subject: [PATCH 2/2] gpg is also a dependency. --- install_git-secret.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_git-secret.sh b/install_git-secret.sh index 8e15d9f..e2119c9 100755 --- a/install_git-secret.sh +++ b/install_git-secret.sh @@ -5,7 +5,7 @@ if [[ -z $(command -v make) ]]; then BUILD_PKGS="make" fi -PKGS="$BUILD_PKGS git bash gawk" +PKGS="$BUILD_PKGS git bash gawk gnupg" apk --no-cache --update add $PKGS git clone -q https://github.com/sobolevn/git-secret.git \