From b31beca2ec2e38e442410a2f6b42e69a342a1b15 Mon Sep 17 00:00:00 2001 From: bergware Date: Tue, 28 Nov 2023 14:31:54 +0100 Subject: [PATCH] Update Helpers.php --- emhttp/plugins/dynamix/include/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/Helpers.php b/emhttp/plugins/dynamix/include/Helpers.php index 06c5e3a7e..021c822cc 100644 --- a/emhttp/plugins/dynamix/include/Helpers.php +++ b/emhttp/plugins/dynamix/include/Helpers.php @@ -265,7 +265,7 @@ function delete_file(...$file) { array_map('unlink',array_filter($file,'file_exists')); } function getnvmepowerstate($device) { - if (!exec("which nvme 2>/dev/null")) return; + if (!exec("which nvme 2>/dev/null")) return; // temporary check exec("nvme id-ctrl $device | grep -E 'ps |wctemp|cctemp'",$rows); foreach ($rows as $row){ if (!$row) continue;