Currently, programs which use gsu_gui exit silently with no indication about
what went wrong if dialog is not installed. This patch makes it print an error
message in this case.
local tree="$1" subtree
_gsu_setup
local tree="$1" subtree
_gsu_setup
+ type -t dialog &> /dev/null
+ if (($? != 0)); then
+ gsu_msg "dialog executable not found"
+ exit 1
+ fi
_get_root_nodes "$tree"
subtree="$result"
_browse "$gsu_name main menu" "$tree" "$subtree"
_get_root_nodes "$tree"
subtree="$result"
_browse "$gsu_name main menu" "$tree" "$subtree"