aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-22 00:28:03 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-07-22 00:28:03 +0200
commitdae94a5fffd4365d0b3f544b1a784702ab03f23f (patch)
tree9ec1dd30b911d5a5082b287b15a495d164261d09
parentac919a733a5e7b27472d69b433447406310f2144 (diff)
downloadsbotools2-dae94a5fffd4365d0b3f544b1a784702ab03f23f.tar.xz
sboconfig: if the config couldn't be read, use an empty string
-rwxr-xr-xsboconfig2
1 files changed, 1 insertions, 1 deletions
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) {