mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Tools: Support Setup for Linux Mint (#25486)
This commit is contained in:
parent
47c0fef8c8
commit
264b8fe277
@ -54,6 +54,22 @@ if [[ ! -f "${DIR}/${REQUIREMENTS_FILE}" ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Linux Mint compatibility: use upstream Ubuntu values
|
||||
if [ -r /etc/upstream-release/lsb-release ]; then
|
||||
. /etc/upstream-release/lsb-release
|
||||
UBUNTU_CODENAME="${DISTRIB_CODENAME:-${UBUNTU_CODENAME:-}}"
|
||||
UBUNTU_RELEASE="${DISTRIB_RELEASE:-${UBUNTU_RELEASE:-}}"
|
||||
|
||||
lsb_release() {
|
||||
if [ "$1" = "-cs" ]; then
|
||||
printf '%s' "$UBUNTU_CODENAME"
|
||||
elif [ "$1" = "-rs" ]; then
|
||||
printf '%s' "$UBUNTU_RELEASE"
|
||||
else
|
||||
command lsb_release "$@"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
# check ubuntu version
|
||||
# otherwise warn and point to docker?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user