[libvirt PATCH v2 7/8] ci: integration.sh: Replace 'test' with '[' operator

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

 



Since we now have a standalone script instead of inlined shell commands
in a YAML, we can adopt the common syntax for if-then-else clauses
which involve the '[' test command alias rather than keep using 'test'
explicitly.

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 ci/integration.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/integration.sh b/ci/integration.sh
index cbf2b0f1b4..7bf3623809 100644
--- a/ci/integration.sh
+++ b/ci/integration.sh
@@ -12,7 +12,7 @@ sudo systemctl daemon-reexec
 # Source the os-release file to query the vendor-provided variables
 source /etc/os-release
 
-if test "$ID" = "centos" && test "$VERSION_ID" -eq 8
+if [ "$ID" = "centos" -a "$VERSION_ID" -eq 8 ]
 then
     DAEMONS="libvirtd virtlockd virtlogd"
 else
-- 
2.39.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux