diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-22 00:28:03 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-22 00:28:03 +0200 |
commit | dae94a5fffd4365d0b3f544b1a784702ab03f23f (patch) | |
tree | 9ec1dd30b911d5a5082b287b15a495d164261d09 | |
parent | ac919a733a5e7b27472d69b433447406310f2144 (diff) | |
download | sbotools2-dae94a5fffd4365d0b3f544b1a784702ab03f23f.tar.xz |
sboconfig: if the config couldn't be read, use an empty string
-rwxr-xr-x | sboconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -129,7 +129,7 @@ if (exists $changes{SLACKWARE_VERSION}) { sub config_write { script_error('config_write requires at least two arguments.') unless @_ >= 2; - my $conf = slurp($conf_file); + my $conf = slurp($conf_file) || ''; _fixup_conf($conf); while (@_ >= 2) { |