Skip to content

Commit

Permalink
Fix VM detection regression introduced in f54d85c
Browse files Browse the repository at this point in the history
  • Loading branch information
zxyrepf authored Jul 24, 2022
1 parent baf5e54 commit 27bf467
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 27bf467

Please sign in to comment.