]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
checkAuthors.in tweaks
authorHarlan Stenn <stenn@ntp.org>
Thu, 7 Nov 2024 06:46:17 +0000 (00:46 -0600)
committerHarlan Stenn <stenn@ntp.org>
Thu, 7 Nov 2024 06:46:17 +0000 (00:46 -0600)
bk: 672c6239-OtKNJKVXLcJm0g1ELl3sg

scripts/build/checkAuthors.in

index 00d0929191f2282fc5a76d7e12abce6c8104e40e..a13735f54dd58b893ade06ff594724049cf2e069 100755 (executable)
@@ -70,15 +70,16 @@ if (! -r $A_file) {
   }
 }
 
-if (! -d $A_path) {
-  warn "$A_path is not a directory!\n";
-  ++$problem;
+{
+  my @args = ("bk", "get", "-q", $A_path);
+  unless (system(@args) == 0) {
+    warn "system @args failed: $?";
+    ++$problem;
+  }
 }
 
 die "bkroot: <$bk_root>, Fix above problems!\n" if ($problem != 0);
 
-my @args = ("bk", "get", "-q", $A_path);
-system(@args) == 0 || die "system @args failed: $?";
 
 # print "Validating '$A_path/*.txt'\n" if ($verbose);