[PATCH] Remove bash-ism from tests/schematestutils.sh

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

 



Remove bash-ism from tests/schematestutils.sh

Fix a bash-ism in an sh script, introduced by commit a3f71eb

Signed-off-by: Chris Dunlop <chris@xxxxxxxxxxxx>

diff --git a/tests/schematestutils.sh b/tests/schematestutils.sh
index e739b99..c34364f 100644
--- a/tests/schematestutils.sh
+++ b/tests/schematestutils.sh
@@ -20,7 +20,7 @@ do
     result=`$cmd 2>&1`
     ret=$?
 
-    grep -- '-invalid.xml$' <<< "$xml" 2>&1 >/dev/null
+    echo "$xml" | grep -- '-invalid.xml$' 2>&1 >/dev/null
     invalid=$?
 
     # per xmllint man page, the return codes for validation error

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]