Files
qt5/coin/provisioning/common/unix/SourceEnvVars.sh
Assam Boudjelthia 7b4a4cf35b Coin: add SourceEnvVar to source env vars written by SetEnvVars
This mainly moves scattered similar code that was already
sourcing profile files to own script, so it can be re-used
elsewhere.

Change-Id: I11677226370fc52f50292d70c62cae5bd7c58d19
Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
2026-04-21 16:34:54 +00:00

16 lines
434 B
Bash

#!/usr/bin/env bash
# Copyright (C) 2026 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# Sources the shell profile files where SetEnvVar.sh writes environment variables.
if uname -a |grep -q "Ubuntu"; then
if lsb_release -a |grep "Ubuntu 22.04"; then
source ~/.bash_profile
else
source ~/.profile
fi
else
source ~/.bashrc
fi