fix: Fixes detecting linux distro during build (#997)
This commit is contained in:
parent
910549db84
commit
f28f29791f
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue