From ea20ce3d508e7f33d1b8ecaa502fb3d77b4085f9 Mon Sep 17 00:00:00 2001 From: Quintush <2246480+quintush@users.noreply.github.com> Date: Fri, 20 Nov 2020 18:32:29 +0100 Subject: [PATCH] Only search for os-release when OS is linux. --- install-binary.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-binary.sh b/install-binary.sh index edb3bbb96..026a5e857 100755 --- a/install-binary.sh +++ b/install-binary.sh @@ -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