Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
clewsy
scripts
Commits
7c374326
Commit
7c374326
authored
May 14, 2020
by
clewsy
Browse files
Fixed lsblk test error.
parent
c4100b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
stuff.sh
stuff.sh
+1
-1
No files found.
stuff.sh
View file @
7c374326
...
...
@@ -248,7 +248,7 @@ fi
## Print disk and partition info
if
[[
-n
"
$GET_D_DISKS_INFO
"
||
-n
"
$GET_ALL_INFO
"
]]
;
then
if
!
command
-v
lsblk
>>
/dev/null
;
then
echo
-e
"
${
COL
}${
BOLD
}
Disks:
${
RESET
}
Cannot determine disk/partition information (lsblk not installed)."
## lsblk not installed.
elif
!
lsblk
2
&> /dev/null
;
then
echo
-e
"
${
COL
}${
BOLD
}
Disks:
${
RESET
}
Cannot determine disk/partition information (lsblk returns error)."
## lsblk errors out.
elif
!
lsblk &> /dev/null
;
then
echo
-e
"
${
COL
}${
BOLD
}
Disks:
${
RESET
}
Cannot determine disk/partition information (lsblk returns error)."
## lsblk errors out.
else
echo
-e
"
${
COL
}${
BOLD
}
Disks and Partitions:
${
RESET
}
"
## lsblk ok, continue.
########First level lsblk tree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment