diff --git a/rhythmblock.lua b/rhythmblock.lua index 25cdf04..7b836df 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -31,6 +31,9 @@ if arg[1] == nil then if driveCount > 1 then print("Too many disk drives. Specify where the desired disk drive is by running 'rhythmbox [drive position]'") -- For safety reasons return false + elseif driveCount == 0 then + print "No drive" + return false -- Exits if there's no disk drive end end else