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

Re: Difficulty with a shell function.



On Sunday, January 25, 2026 5:12:48 AM CET, peter@easthope.ca wrote:
# blkid --uuid 2026-01-19-03-28-45-00
/dev/sdc
Meaning that the block device with that UUID is connected to the system.

why not just do something like:

 dev="$( blkid --uuid "$destination" )"
 if [[ $? -eq 0 ]]
 then
     echo "destination device is connected."
     echo "dev=$dev"
 else
     echo "destination device not connected.  Aborting."
 fi

am i missing something?

greetings...


Reply to: