Skip to content

Commit

Permalink
check-installed: Fix error message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Feb 1, 2021
1 parent e6155ef commit 410037a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-installed
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 410037a

Please sign in to comment.