Skip to content

Commit df2a400

Browse files
committed
Check for directory with -d and not -f
Signed-off-by: Jan Dubois <[email protected]>
1 parent b04c4d1 commit df2a400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/lima-and-qemu.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
for my $example (@ARGV) {
4646
my $config = "$repo_root/examples/$example.yaml", ;
4747
die "Config $config not found" unless -f $config;
48-
system("limactl delete -f $example") if -f "$ENV{HOME}/.lima/$example";
48+
system("limactl delete -f $example") if -d "$ENV{HOME}/.lima/$example";
4949
system("limactl start --tty=false $config");
5050
system("limactl shell $example uname");
5151
system("limactl stop $example");

0 commit comments

Comments
 (0)