From 4ab5c935bd91accec83b4063eb67950d8a2ef7f1 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Wed, 7 Apr 2021 20:17:56 +0200
Subject: [PATCH] check_smartstatus - update message if sudo smartctl -H fails

---
 check_smartstatus | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_smartstatus b/check_smartstatus
index 086b185..60bab33 100755
--- a/check_smartstatus
+++ b/check_smartstatus
@@ -118,7 +118,7 @@ do
   if [ $iFound -eq 1 ]; then
     sudo smartctl -H $mydevice >/dev/null 2>&1
     if [ $? -ne 0 ]; then
-      ph.abort "SKIP: smartctl was found - but did not respond results. Maybe no sudo permissions or additional parameters required. $( udo smartctl -H $mydevice )"
+      ph.abort "SKIP: smartctl was found - but did not respond results. Maybe no sudo permissions or additional parameters required. $( sudo smartctl -H $mydevice )"
     fi
   fi
 
-- 
GitLab