Invert get.sh name check, don't use -v and -q together.
This commit is contained in:
		@ -7,7 +7,7 @@ if echo "$vmname" | grep -vqE '^(cvm|capsul)-[a-z0-9]{10}$'; then
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if virsh list --name --all | grep -vqE "^$vmname$" ; then
 | 
			
		||||
if ! virsh list --name --all | grep -qE "^$vmname$" ; then
 | 
			
		||||
	echo "Error: $vmname not found"
 | 
			
		||||
	exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user