From 410037a8586c27efcf88f229ed31fda5ae5dc575 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sat, 12 Dec 2020 11:40:49 +0100 Subject: [PATCH] check-installed: Fix error message The error message of a missing bee file in the system doesn't show the file extension. This is a result of a confusion of the package argument of the beeversion comand and the argument to its --format option. Correct call to beeeversion, so that $beefile contains the file extension. --- scripts/check-installed | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-installed b/scripts/check-installed index f3a8e10ec..9a89040e4 100755 --- a/scripts/check-installed +++ b/scripts/check-installed @@ -58,8 +58,8 @@ for my $beefile (scandir('.')) { for my $dir (scandir('/usr/share/bee')) { my $pkg=$dir; $pkg eq 'mxtools-0.0-0' and next; - my $beefile=save_qx('beeversion','--format','%F',"$pkg.bee"); - unless (-e "/usr/share/bee/$pkg/$beefile.bee") { + my $beefile=save_qx('beeversion', '--format', '%F.bee', $pkg); + unless (-e "/usr/share/bee/$pkg/$beefile") { print "# no such file /usr/share/bee/$pkg/$beefile\n"; next; }