Skip to content
Snippets Groups Projects
Commit be680f84 authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2023-06-16: FG; Redirect possible error messages from lsblk to /dev/null.

parent ed631aa9
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ if ( -e $_multipathd && $checkMultipath ) { ...@@ -60,7 +60,7 @@ if ( -e $_multipathd && $checkMultipath ) {
} }
} }
my @_lsblk = `lsblk | grep disk | cut -d' ' -f1 | grep -v -e ^fd -e ^sr0 `; my @_lsblk = `lsblk 2> /dev/null | grep disk | cut -d' ' -f1 | grep -v -e ^fd -e ^sr0 `;
chomp @_lsblk; chomp @_lsblk;
my @_data = `cat $_proc`; my @_data = `cat $_proc`;
s{^\s+|\s+$}{}g foreach @_data; s{^\s+|\s+$}{}g foreach @_data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment