Skip to content

Commit

Permalink
Merge pull request #6 from silinternational/autopurge
Browse files Browse the repository at this point in the history
Initialize default values in declaration
  • Loading branch information
dalenewby authored Apr 29, 2024
2 parents 9be2679 + 7ce73e9 commit 526bf01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions youtrack-backup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ ()
my $b2_app_key_id; # Backblaze application key ID
my $b2_app_key_secret; # Backblaze application key secret
my $b2_bucket; # Backblaze B2 bucket name
my $delay; # seconds to delay between checking backup progress
my $keep_count; # number of backup files to keep
my $delay = 30; # seconds to delay between checking backup progress
my $keep_count = 0; # number of backup files to keep (0 = keep all)
my $quiet;
my $help;

Expand Down Expand Up @@ -80,9 +80,6 @@ ()
my $content_header = "--header \"Content-Type: application/json\"";
my $progress_header = "--no-progress-meter";

$delay = 30 if (! defined($delay));
$keep_count = 0 if (! defined($keep_count));

my $curl_query1;
my $curl_query2;
my $curl_query;
Expand Down

0 comments on commit 526bf01

Please sign in to comment.