Remove headfings in Error and status and sort out non global opening of DBs

This commit is contained in:
2025-03-31 19:03:54 +01:00
105 changed files with 146 additions and 1239 deletions

9
Targets/Nutups/Nutups-Custom.pm Normal file → Executable file
View File

@@ -191,12 +191,17 @@ sub get_model_options {
return ['Error occurred'];
}
<<<<<<< HEAD
# Remove "/usr/sbin" from the front of each line
=======
# Remove "/usr/sbin/" from the front of each line
>>>>>>> 75aaf422042b2af06071fd64175eb15f6c4ae92b
s{^/usr/sbin/}{} for @output;
# Trim whitespace from each element and return the array
chomp(@output); # Remove newline characters from each line
return @output; # Return the array of modified output lines
<<<<<<< HEAD
}
sub get_ups_details {
@@ -230,5 +235,7 @@ sub get_ups_details {
}
return $formatted_output;
=======
>>>>>>> 75aaf422042b2af06071fd64175eb15f6c4ae92b
}
1;
1;