From 9f3f3b24c18c7f5f855cf10a76098447207d6f71 Mon Sep 17 00:00:00 2001 From: Glenn Date: Fri, 24 Nov 2023 19:25:50 +0100 Subject: [PATCH] fix: auto-open should not run on umounted filesystems --- src/cli.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.cr b/src/cli.cr index 6763a1d..b15e8be 100644 --- a/src/cli.cr +++ b/src/cli.cr @@ -101,7 +101,7 @@ module GX raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil? mount_or_umount(filesystem) - auto_open(filesystem) if @config.auto_open + auto_open(filesystem) if filesystem.mounted? && @config.auto_open end end