Skip to content
Snippets Groups Projects
Commit 7814d463 authored by micah's avatar micah :speech_balloon:
Browse files

Added warning if no devices were found on the system

parent 29007116
No related branches found
No related tags found
No related merge requests found
...@@ -450,6 +450,9 @@ fi ...@@ -450,6 +450,9 @@ fi
if [ "$partitions" == "yes" ]; then if [ "$partitions" == "yes" ]; then
devices=`$HWINFO --disk | grep "Device File" | cut -d\ -f5` devices=`$HWINFO --disk | grep "Device File" | cut -d\ -f5`
if [ "$devices" == "" ]; then
warning "No harddisks found"
fi
for dev in $devices; do for dev in $devices; do
[ -b $dev ] || continue [ -b $dev ] || continue
label=${dev#/dev/} label=${dev#/dev/}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment