fix(test/driver-loader): source script to get env vars populated

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso
2020-05-14 18:43:51 +02:00
committed by poiana
parent 95e7242d13
commit 622a6c1e44
2 changed files with 42 additions and 54 deletions

View File

@@ -420,6 +420,10 @@ fi
DRIVER_VERSION="@PROBE_VERSION@"
DRIVER_NAME="@PROBE_NAME@"
if [ "${1}" = "--source-only" ]; then
return
fi
if [ "$(id -u)" != 0 ]; then
echo "Installer must be run as root (or with sudo)."
exit 1