Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
ALLOW installation on all distros with dpkg and notify anybody else.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclegg committed Oct 18, 2017
1 parent d762a6d commit 7963cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" ];
Expand All @@ -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}"
Expand Down

0 comments on commit 7963cba

Please sign in to comment.