Skip to content

Commit 30f1ff8

Browse files
committed
bootstrap: Drop lsb_release support
And also drop an unnecessary tr invocation. Signed-off-by: Zack Cerza <[email protected]>
1 parent bac5eb6 commit 30f1ff8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

bootstrap

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ fi
1313

1414
case "$(uname -s)" in
1515
Linux)
16-
if command -v lsb_release > /dev/null; then
17-
OS=$(lsb_release --id --short)
18-
else
19-
. /etc/os-release
20-
OS=$(echo "$NAME" | tr -d ' ')
21-
fi
16+
. /etc/os-release
17+
OS="${NAME// /}"
2218
case "$OS" in
2319
Ubuntu|Debian|LinuxMint)
2420
deps=(qemu-utils python3-dev libssl-dev libev-dev libvirt-dev libffi-dev libyaml-dev pipx build-essential jq curl)

0 commit comments

Comments
 (0)