summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0d06c09)
This was unnecessarily complex and caused an error if set -u
was used.
- local txt="### $_gsu_self --"
- if test -z "$gsu_banner_txt"; then
- txt="$txt set \$gsu_banner_txt to customize this message"
- else
- txt="$txt $gsu_banner_txt"
- fi
- gsu_short_msg "$txt ###"
+ gsu_banner_txt="${gsu_banner_txt:-set \$gsu_banner_txt to customize this message}"
+ gsu_short_msg "### $_gsu_self -- ###"