Skip to content

Commit

Permalink
Merge pull request #83 from quintush/fix/NoLinuxInstall
Browse files Browse the repository at this point in the history
Only search for os-release when OS is linux.
  • Loading branch information
quintush authored Nov 20, 2020
2 parents 778bc25 + ea20ce3 commit 6d94fbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ downloadFile() {
# installFile verifies the SHA256 for the file, then unpacks and
# installs it.
installFile() {
DIST=$(cat /etc/os-release 2>&1)
DIST=""
if [ "$OS" == "linux" ]; then
DIST=$(cat /etc/os-release 2>&1)
fi
cd "/tmp"
DOWNLOAD_FILE=$(find ./_dist -name "*.tgz")
if [ -n "$PROJECT_CHECKSUM" ]; then
Expand Down

0 comments on commit 6d94fbe

Please sign in to comment.