From 7963cba4dbb8914ec639671113a3240a604e050a Mon Sep 17 00:00:00 2001 From: mattclegg Date: Wed, 18 Oct 2017 17:25:47 +0200 Subject: [PATCH] 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}"