diff options
Diffstat (limited to 'sboul')
| -rwxr-xr-x | sboul | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -37,6 +37,10 @@ sub usage { Usage: $0 -c <category> [-e <email>] [-C <comment>] [-k <keywords>] file +If no -e option is given, the value of SBO_UL_EMAIL in the environment +is used, or else SBO_EMAIL if SBO_UL_EMAIL is not set. If there's no +-e and neither variable is set, it's a fatal error. + If no -e option is given, the contents of ~/.sbo_email is used as the email address (and it's a fatal error if the file's missing). @@ -93,7 +97,7 @@ getopts('c:e:C:k:', \%opts); die_usage("Unknown junk on command line: '$junk'") if $junk; die_usage("No category (missing required -c arg)") unless $opts{c}; $category = get_category($opts{c}); -$submail = $opts{e} || $ENV{SBO_EMAIL}; +$submail = $opts{e} || $ENV{SBO_UL_EMAIL} || $ENV{SBO_EMAIL}; die_usage("No email address (use -e or else create ~/.sbostuff.cfg)") unless $submail; $comments = $opts{C} || ""; $tags = $opts{k} || ""; |
