From c9368f75ac11bff973d79f50358c9e3d820389b8 Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 03:47:27 -0400 Subject: [PATCH] actually fixed it this time --- rhythmblock.lua | 3 +++ 1 file changed, 3 insertions(+) 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