From: micah Date: Sun, 6 Aug 2006 18:25:18 +0000 (+0000) Subject: Added warning if no devices were found on the system X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=a85f2db38af1ba1e315dce2dd9b381097c54466a;p=matthijs%2Fupstream%2Fbackupninja.git Added warning if no devices were found on the system git-svn-id: http://code.autistici.org/svn/backupninja/trunk@423 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/handlers/sys b/handlers/sys index a83baaa..d0e2057 100755 --- a/handlers/sys +++ b/handlers/sys @@ -450,6 +450,9 @@ fi if [ "$partitions" == "yes" ]; then devices=`$HWINFO --disk | grep "Device File" | cut -d\ -f5` + if [ "$devices" == "" ]; then + warning "No harddisks found" + fi for dev in $devices; do [ -b $dev ] || continue label=${dev#/dev/}