Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions install_git-secret.sh
Original file line number Diff line number Diff line change
@@ -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 gnupg"
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