diff mbox series

[2/3] CI/openSUSE: Fix tpm_server symlink creation

Message ID 20210622141224.25006-3-pvorel@suse.cz (mailing list archive)
State New, archived
Headers show
Series Add GitHub Actions support | expand

Commit Message

Petr Vorel June 22, 2021, 2:12 p.m. UTC
This symlink is missing only on openSUSE Tumbleweed,
it exists on openSUSE Leap, thus build failed.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 ci/tumbleweed.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ci/tumbleweed.sh b/ci/tumbleweed.sh
index ecd2372..dfc478b 100755
--- a/ci/tumbleweed.sh
+++ b/ci/tumbleweed.sh
@@ -42,6 +42,6 @@  zypper --non-interactive install --force-resolution --no-recommends \
 	which \
 	xsltproc
 
-if [ -f /usr/lib/ibmtss/tpm_server ]; then
+if [ -f /usr/lib/ibmtss/tpm_server -a ! -e /usr/local/bin/tpm_server ]; then
 	ln -s /usr/lib/ibmtss/tpm_server /usr/local/bin
 fi