On 2026-01-24, [email protected] wrote: > Does this line have a syntax error? > if ! ( lsblk -alno UUID | grep $destination > /dev/null ); then
As say Will you could use a function to clarify your code and it is better to protect your variables. Also you could use "grep -qs" and remove "> /dev/null". And you could use only blkid and not lsblk. But this do not answer your question. I try your code and it works here so the problem is elsewhere. Do you run bash or sh ? Could you provide us type -a blkid type -a lsblk type -a grep

