salsa.debian.org/debian / smcroute

debian/tests: Fix a Perl warning in daemon-init-scripts

Git-Dch: ignore
Micha Lenk · 5 years ago commit e99d267 · parent b04cdaf · child b9ccc3e · patch
diff --git a/debian/tests/daemon-init-scripts b/debian/tests/daemon-init-scripts
index 3b89570..1038a30 100755
--- a/debian/tests/daemon-init-scripts
+++ b/debian/tests/daemon-init-scripts
@@ -23,7 +23,7 @@ sub get_smcrouted_pid {
 
     # Retry after one second if pgrep unexpectedly failed or succeeded
     sleep 1;
-    my $smcroute_pid = capture EXIT_ANY, 'pgrep', 'smcrouted';
+    $smcroute_pid = capture EXIT_ANY, 'pgrep', 'smcrouted';
     chomp $smcroute_pid;
     return $smcroute_pid;
 }