From c6de1322bab25a884ad48300f33d7ac623074005 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Aug 2014 19:06:40 +0200 Subject: [PATCH] Fix _gsu_banner_msg(). This function did not print the banner at all. It also had only a single caller. This patch removes the function and changes the single caller to print the banner text. --- subcommand | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/subcommand b/subcommand index 6b5df0a..06f677b 100644 --- a/subcommand +++ b/subcommand @@ -192,11 +192,6 @@ _com_man() ret=$GSU_SUCCESS } -_gsu_banner_msg() -{ - gsu_short_msg "### $_gsu_self -- ###" -} - export gsu_help_txt=" Print online help. @@ -227,7 +222,7 @@ _com_help() ere="$result" if (($# == 0)); then - _gsu_banner_msg 2>&1 + gsu_short_msg "### $_gsu_self -- $gsu_banner_txt ###" _gsu_usage 2>&1 { printf "com_help()\n$gsu_help_txt" | head -n 4; echo "--" -- 2.39.2