From f28f29791faec40c9e9f2ec3952897b2cebaee78 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 14 Apr 2022 17:39:57 -0700 Subject: [PATCH] fix: Fixes detecting linux distro during build (#997) --- publish.cmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/publish.cmd b/publish.cmd index 15daf9977..6ce7daf6e 100755 --- a/publish.cmd +++ b/publish.cmd @@ -12,8 +12,7 @@ elif [[ $(uname) = "Darwin" ]]; then os="-r osx-x64" elif [[ -f /etc/os-release ]]; then . /etc/os-release - NAME="$(tr '[:upper:]' '[:lower:]' <<< $NAME | tr -d [:blank:])" - os="-r $NAME.$VERSION_ID-x64" + os="-r $(tr '[:upper:]' '[:lower:]' <<< $ID).$VERSION_ID-x64" fi if [[ $config ]]; then