Script to remove any recovery partition other than from the boot drive.

#!/bin/bash
echo "--------------------------------------------------"    
Boot=`mount | grep " / " | cut -d " " -f 1 | cut -d "/" -f 3`
Recovery=`diskutil list | grep Recovery\ HD | awk {'print $NF;}'`
echo Recovery partition found at: $Recovery

for i in $Recovery
    do
    RecoveryMinusOne=`echo $i | cut -c 1-6`$((`echo $i | cut -c 7`-1 ))
    echo
        if [ $RecoveryMinusOne == $Boot ]; then
            echo Ignoring partition $i next to boot partition $Boot
        else
            echo Merging partition $i into $RecoveryMinusOne
            read -r -p "Are you sure? [Y/n] " response
            case $response in
            [yY][eE][sS]|[yY]) 
                diskutil mergePartitions HFS+ MacintoshHD $RecoveryMinusOne $i
                ;;
            *)
                ;;
            esac
            echo
            echo "--------------------------------------------------"    
        fi
done
echo "Copyleft 2012, Daniel Zeller"