From 0e868dac847d958523f457590386c824c5a5927f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= <frederic.danis@collabora.com>
Date: Wed, 13 Oct 2021 09:21:56 +0200
Subject: [PATCH] update-test-path: Fix LD_LIBRARY_PATH setup
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This script fails when LD_LIBRARY_PATH is not set before calling it and
calling script has `nounset` option set.

Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
---
 update-test-path | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update-test-path b/update-test-path
index 61174ff..5e0c115 100644
--- a/update-test-path
+++ b/update-test-path
@@ -12,5 +12,5 @@ aarch64) ARCHDIR=arm64 ;;
 esac
 
 PATH=${TESTPATH}/${ARCHDIR}/bin:$PATH
-export LD_LIBRARY_PATH=${TESTPATH}/${ARCHDIR}/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=${TESTPATH}/${ARCHDIR}/lib:${LD_LIBRARY_PATH:-}
 
-- 
GitLab