fix: Fixes detecting linux distro during build (#997)

This commit is contained in:
Kamron Batman 2022-04-14 17:39:57 -07:00 committed by GitHub
parent 910549db84
commit f28f29791f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,7 @@ elif [[ $(uname) = "Darwin" ]]; then
os="-r osx-x64" os="-r osx-x64"
elif [[ -f /etc/os-release ]]; then elif [[ -f /etc/os-release ]]; then
. /etc/os-release . /etc/os-release
NAME="$(tr '[:upper:]' '[:lower:]' <<< $NAME | tr -d [:blank:])" os="-r $(tr '[:upper:]' '[:lower:]' <<< $ID).$VERSION_ID-x64"
os="-r $NAME.$VERSION_ID-x64"
fi fi
if [[ $config ]]; then if [[ $config ]]; then