diff mbox series

[1/1] travis: Fix Tumbleweed installation

Message ID 20201006142824.12152-1-pvorel@suse.cz (mailing list archive)
State New, archived
Headers show
Series [1/1] travis: Fix Tumbleweed installation | expand

Commit Message

Petr Vorel Oct. 6, 2020, 2:28 p.m. UTC
to prevent fail the job when /usr/lib/ibmtss/tpm_server does not exist.

Fixes: 6c78911 travis: Switch to docker based builds

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

fixed: https://travis-ci.org/github/pevik/ima-evm-utils/jobs/733339306
broken: https://travis-ci.org/github/pevik/ima-evm-utils/jobs/733310157

Sorry for not catching obvious error when using 'set -e'.

Kind regards,
Petr

 travis/tumbleweed.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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