[PATCH 1/1] travis: Fix Tumbleweed installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
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 --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
-- 
2.28.0




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux