Avoiding grep

This commit is contained in:
Carlos Nihelton 2021-11-09 09:42:57 -03:00
parent 8f4a6927bb
commit e88eb7334f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ TESTER=${IMAGE##*:}
lxd init --auto
if [ -z "$(lxc list -f csv | grep $TESTER)" ]
if [ -z "$(lxc list -f csv -c n ^${TESTER}\$)" ]
then
lxc launch $IMAGE $TESTER
lxc config device add $TESTER code disk source=`pwd` path=/subiquity