chore: relax checks when installing channels on unsupported platforms

This commit is contained in:
Yury Semikhatsky 2024-11-04 15:03:38 -08:00
parent 36a975c30b
commit f4835987fe
5 changed files with 50 additions and 40 deletions

View file

@ -7,15 +7,17 @@ if [[ $(arch) == "aarch64" ]]; then
exit 1 exit 1
fi fi
if [[ ! -f "/etc/os-release" ]]; then if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)" if [[ ! -f "/etc/os-release" ]]; then
exit 1 echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
fi exit 1
fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1
fi
fi fi
# 1. make sure to remove old beta if any. # 1. make sure to remove old beta if any.

View file

@ -7,15 +7,17 @@ if [[ $(arch) == "aarch64" ]]; then
exit 1 exit 1
fi fi
if [[ ! -f "/etc/os-release" ]]; then if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)" if [[ ! -f "/etc/os-release" ]]; then
exit 1 echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
fi exit 1
fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1
fi
fi fi
# 1. make sure to remove old stable if any. # 1. make sure to remove old stable if any.

View file

@ -8,15 +8,17 @@ if [[ $(arch) == "aarch64" ]]; then
exit 1 exit 1
fi fi
if [[ ! -f "/etc/os-release" ]]; then if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)" if [[ ! -f "/etc/os-release" ]]; then
exit 1 echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
fi exit 1
fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1
fi
fi fi
# 1. make sure to remove old beta if any. # 1. make sure to remove old beta if any.

View file

@ -8,15 +8,17 @@ if [[ $(arch) == "aarch64" ]]; then
exit 1 exit 1
fi fi
if [[ ! -f "/etc/os-release" ]]; then if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)" if [[ ! -f "/etc/os-release" ]]; then
exit 1 echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
fi exit 1
fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1
fi
fi fi
# 1. make sure to remove old dev if any. # 1. make sure to remove old dev if any.

View file

@ -8,15 +8,17 @@ if [[ $(arch) == "aarch64" ]]; then
exit 1 exit 1
fi fi
if [[ ! -f "/etc/os-release" ]]; then if [ -z "$PLAYWRIGHT_HOST_PLATFORM_OVERRIDE" ]; then
echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)" if [[ ! -f "/etc/os-release" ]]; then
exit 1 echo "ERROR: cannot install on unknown linux distribution (/etc/os-release is missing)"
fi exit 1
fi
ID=$(bash -c 'source /etc/os-release && echo $ID') ID=$(bash -c 'source /etc/os-release && echo $ID')
if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then
echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported" echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"
exit 1 exit 1
fi
fi fi
# 1. make sure to remove old stable if any. # 1. make sure to remove old stable if any.