X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=common;h=a7c39b11ae9f08f528fee3769665a50cbbb5151f;hb=03ad6fa34ffda8f6846dd83056c0722f884b57cf;hp=bd8276b2a96954eef6ef05dfe4cbad5ccf2c1a62;hpb=f31cc416b1acdbb8f5703b208d943ce500a5b840;p=gsu.git diff --git a/common b/common index bd8276b..a7c39b1 100644 --- a/common +++ b/common @@ -49,12 +49,12 @@ gsu_short_msg() gsu_msg() { - gsu_short_msg "$_gsu_self: $1" + gsu_short_msg "$gsu_name: $1" } gsu_date_msg() { - gsu_short_msg "$_gsu_self $(date): $1" + gsu_short_msg "$gsu_name $(date): $1" } gsu_err_msg() @@ -81,8 +81,7 @@ gsu_err_msg() _gsu_setup() { - _gsu_self="$(basename $0)" - gsu_name="${gsu_name:=$_gsu_self}" + gsu_name="${gsu_name:-${0##*/}}" gsu_config_var_prefix="${gsu_config_var_prefix:=$gsu_name}" gsu_banner_txt="${gsu_banner_txt:-set \$gsu_banner_txt to customize this message}" _gsu_init_errors