Fix SetEnvVar for Debian

Pick-to: 6.6 6.5
Change-Id: I4152575cc071ea7f51e102a3807b05ed9f89d2fd
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Allan Sandfeld Jensen
2023-06-12 14:42:12 +02:00
parent 2ae9a6c099
commit 14f7603e91

View File

@@ -12,7 +12,7 @@ function SetEnvVar {
echo "Setting environment variable $name to $path."
if uname -a |grep -q "Ubuntu"; then
if uname -a |grep -q -E "Ubuntu|Debian"; then
if lsb_release -a |grep "Ubuntu 22.04"; then
echo "export $name=$path" >> ~/.bashrc
echo "export $name=$path" >> ~/.bash_profile