From dae94a5fffd4365d0b3f544b1a784702ab03f23f Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Fri, 22 Jul 2016 00:28:03 +0200 Subject: sboconfig: if the config couldn't be read, use an empty string --- sboconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sboconfig b/sboconfig index a621207..819602d 100755 --- a/sboconfig +++ b/sboconfig @@ -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) { -- cgit v1.2.3