testbed-poll: Fix file glob operator

To properly detect bare sysupgrade images or not.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear
2021-01-27 13:19:27 -08:00
parent 508164cad9
commit 49132a2cae

View File

@@ -210,7 +210,8 @@ for ($i = 0; $i<@lines; $i++) {
# Detect if we are using full pkg or new trimmed sysupgrade image
my $full_owrt_pkg = 0;
if (-f "*sysupgrade*") {
my @listing = glob("*sysupgrade*");
if (@listing > 0) {
print("NOTE: Found full openwrt package.\n");
$full_owrt_pkg = 1;
}