How to parse output from a command in OS X Automator? I have the following code in Automator but it fails to load the variable with the output from the command.

for f in "$@"
do
    output = hdiutil verify "$f"
    echo "$output" 
done


I want to parse the output of that to see if it's verified or not however the variable is coming back empty.
output=$(hdiutil verify "$f")
echo "$output"