diff options
| author | Paul Buetow <paul@buetow.org> | 2012-03-15 09:12:46 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2012-03-15 09:12:46 +0100 |
| commit | c5bb4a908942ad2c9a035b46b448d94d33420981 (patch) | |
| tree | 50e6911dbf3c473418f96d3a649df863ef9a81e4 | |
| parent | 66ee5dc4507b88d67086e3f5ef9d21b0e73f2331 (diff) | |
dont quit loadbars if loadbarsrc can not be overwritten
| -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"; |
