diff options
author | fourdan | 2007-03-27 08:36:29 +0000 |
---|---|---|
committer | fourdan | 2007-03-27 08:36:29 +0000 |
commit | 8f13c198977174bb14e7eed9c0ec35e1833d2441 (patch) | |
tree | d6de33981f46fb2ceab9b2067926c3362e853280 | |
parent | e29b323aa2846bcb110895a1e8f55afd38ca07de (diff) | |
download | ivybanner-8f13c198977174bb14e7eed9c0ec35e1833d2441.zip ivybanner-8f13c198977174bb14e7eed9c0ec35e1833d2441.tar.gz ivybanner-8f13c198977174bb14e7eed9c0ec35e1833d2441.tar.bz2 ivybanner-8f13c198977174bb14e7eed9c0ec35e1833d2441.tar.xz |
Use $HOME/.ivybanner as default configuration file is available
-rw-r--r-- | ivybanner | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -99,6 +99,8 @@ Getopt::Long::Configure('pass_through'); 'nocursor', 'help', 'override', 'size=s', 'smallsize' ); &usage if $opt{help}; +$conffile = $ENV{"HOME"} . "/.ivybanner" if ( -f $ENV{"HOME"} . "/.ivybanner"); + if ($opt{conf}) { if (not -f $opt{conf}) { die "No such file $opt{conf}\n"; @@ -1082,7 +1084,7 @@ Hide mouse cursor (for touchscreen usage). =item B<-conf> file -Specify configuration file. Default is /etc/ivybanner.conf +Specify configuration file. Default is $HOME/.ivybanner if available or /etc/ivybanner.conf otherwise. =item B<-dir> directory |