#!/bin/bash rocminfo_path="$(type -p rocminfo)" if [ -n "$rocminfo_path" ]; then yesno "Attach output of 'rocminfo' to this bug report? (y/N) " if [ "$REPLY" = "yep" ]; then rocminfo >&3 fi fi