Skip to content

Commit

Permalink
Merge pull request #248 from zxyrepf/fix-vm-detection
Browse files Browse the repository at this point in the history
Core: fix VM detection regression introduced in f54d85c
  • Loading branch information
liske authored Aug 23, 2022
2 parents 273bb3e + 27bf467 commit e9f7e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion needrestart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ my $is_tty = (-t *STDERR || -t *STDOUT || -t *STDIN);
my $is_vm;
my $is_container;

if($is_systemd && -x q(/usr/bin/systemds-detect-virt)) {
if($is_systemd && -x q(/usr/bin/systemd-detect-virt)) {
# check if we are inside of a vm
my $ret = system(qw(/usr/bin/systemd-detect-virt --vm --quiet));
unless($? == -1 || $? & 127) {
Expand Down

0 comments on commit e9f7e3b

Please sign in to comment.