From ff6719c18fcc43dd83cb88e469efd406aaeba559 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 25 2011 18:10:02 +0000 Subject: Update cli_printMessage.sh. --- diff --git a/Scripts/Bash/centos-art/Functions/cli_printMessage.sh b/Scripts/Bash/centos-art/Functions/cli_printMessage.sh index b2da4dd..d5556e7 100755 --- a/Scripts/Bash/centos-art/Functions/cli_printMessage.sh +++ b/Scripts/Bash/centos-art/Functions/cli_printMessage.sh @@ -33,7 +33,7 @@ function cli_printMessage { # Reduce paths inside output messages. The main purpose for this # is to free horizontal space in output messages. MESSAGE=$(echo "$MESSAGE" \ - | sed -r "s!^${HOME}/artwork/(trunk|branches|tags)/!\1/!g") + | sed -r "s!${HOME}/artwork/(trunk|branches|tags)/!\1/!g") # Remove blank spaces from lines' begining. MESSAGE=$(echo "$MESSAGE" | sed -r 's!^[[:space:]]+!!') @@ -103,7 +103,7 @@ function cli_printMessage { # This option receives the output of bash's caller # built-in as message value and produces the documentation # entry from it. - MESSAGE=$(cli_getRepoName "$(echo $MESSAGE | cut -d ' ' -f2-)" 'd') + MESSAGE=$(dirname "$(echo $MESSAGE | cut -d ' ' -f2-)") cli_printMessage '-' 'AsSeparatorLine' cli_printMessage "`gettext "To know more, run the following command"`:" cli_printMessage "centos-art manual --read='$MESSAGE'"