From d762a6d9d79d998fc263a7ad5cdb3cb4ae057b9d Mon Sep 17 00:00:00 2001 From: mattclegg Date: Wed, 18 Oct 2017 17:21:58 +0200 Subject: [PATCH 1/2] UPDATE sha to be correct for 2.0.9 --- install-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-binary.sh b/install-binary.sh index aeadb3a..e71f997 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -4,7 +4,7 @@ set -ueo pipefail SOPS_VERSION="2.0.9" SOPS_DEB_URL="https://go.mozilla.org/sops/dist/sops_${SOPS_VERSION}_amd64.deb" -SOPS_DEB_SHA="fdc3559d6f16a54ec1d54d4a0aa1d7a3d273207ec78a37f9869dd2a1b32f5292" +SOPS_DEB_SHA="444c689ebab45150e751465be392bfbacf1e319fdc7e98db979e5dbf675038b4" RED='\033[0;31m' GREEN='\033[0;32m' From 7963cba4dbb8914ec639671113a3240a604e050a Mon Sep 17 00:00:00 2001 From: mattclegg Date: Wed, 18 Oct 2017 17:25:47 +0200 Subject: [PATCH 2/2] ALLOW installation on all distros with dpkg and notify anybody else. --- install-binary.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-binary.sh b/install-binary.sh index e71f997..134a533 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -44,7 +44,7 @@ else brew install sops elif [ "$(uname)" == "Linux" ]; then - if [ "${LINUX_DISTRO}" == "Ubuntu" ]; + if which dpkg; then curl "${SOPS_DEB_URL}" > /tmp/sops.deb if [ "$(/usr/bin/shasum -a 256 /tmp/sops.deb | cut -d ' ' -f 1)" == "${SOPS_DEB_SHA}" ]; @@ -53,6 +53,8 @@ else else echo -e "${RED}Wrong SHA256${NOC}" fi + else + echo -e "${RED}Sorry only installation via dpkg (aka Debian distros) is currently supported${NOC}" fi else echo -e "${RED}No SOPS package available${NOC}"