Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
prevent perl warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Jun 21, 2017
1 parent 6dfd948 commit 49962a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/functions.pm
Expand Up @@ -215,7 +215,7 @@ sub update_client
open(FP, "$conf/bareos-dir.conf") or die "can't open source $!";
open(NEW, ">$tmp/bareos-dir.conf.$$") or die "can't open dest $!";
while (my $l = <FP>) {
if (!$in_client && $l =~ /^Client {/) {
if (!$in_client && $l =~ /^Client \{/) {
$in_client=1;
}

Expand Down Expand Up @@ -396,7 +396,7 @@ sub add_attribute
next;
}

if ($l =~ /^(\w+) {/) {
if ($l =~ /^(\w+) \{/) {
$cur_obj = $1;
$done=0;
}
Expand Down

0 comments on commit 49962a5

Please sign in to comment.