6de64f Update Functions/Render/render_getConfigOption.sh.

Authored and Committed by areguera 13 years ago
    Update Functions/Render/render_getConfigOption.sh.
    
        
Scripts/Functions/Render/render_getConfigOption.sh CHANGED
@@ -57,12 +57,15 @@ function render_getConfigOption {
57
57
| sed -r 's!( |,|;) *! !g' \
58
58
| sed -r 's! *$!!g')
59
59
60
- # Verify configuration option. It cannot be an empty value.
61
- if [[ $OPTION == '' ]];then
62
- cli_printMessage "`gettext "The configuration option cannot be empty."`" --as-error-line
60
+ # Print out the configuration option retrived from action string,
61
+ # only if it is not an empty value. Do not use `echo' or `printf'
62
+ # built-in commands here. Use the `cli_printMessage' functionality
63
+ # instead. This is required in order to reverse the apostrophe
64
+ # codification accomplished when options were retrived from
65
+ # command-line (cli_doParseArgumentsReDef) in the argument of
66
+ # options like `--post-rendition' and `--last-rendition'.
67
+ if [[ $OPTION != '' ]];then
68
+ cli_printMessage "$OPTION" --as-stdout-line
63
69
fi
64
70
65
- # Print out configuration options retrived from action string.
66
- cli_printMessage "$OPTION" --as-stdout-line
67
-
68
71
}