diff options
| -rw-r--r-- | CHANGELOG | 1 | ||||
| -rwxr-xr-x | loadbars | 7 |
2 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,7 @@ * Dropped FreeBSD support / focus is Linux * On shutdown all sub-processes are gonna be terminated instantly (was old bug). Needs Proc::ProcessTable module. +* Dont quit loadbars if ~/.loadbarsrc can not be overwritten Sat Feb 25 20:09:02 CET 2012 * Release v0.5.1 @@ -179,7 +179,12 @@ sub read_config () { sub write_config () { display_warn "Overwriting config file " . CONFFILE if -f CONFFILE; - open my $conffile, '>', CONFFILE or die "$!: " . CONFFILE . "\n"; + + open my $conffile, '>', CONFFILE or do { + display_warn "$!: " . CONFFILE; + + return undef; + }; for (keys %C) { print $conffile "$_=$C{$_}\n"; |
