From f05ee6b1b67176e8c4e57524a07a3f7d04281865 Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 20 Nov 2023 12:40:13 +0100 Subject: [PATCH] fix: wrong comparison --- src/filesystems/filesystem.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystems/filesystem.cr b/src/filesystems/filesystem.cr index da6090d..8881bad 100644 --- a/src/filesystems/filesystem.cr +++ b/src/filesystems/filesystem.cr @@ -23,7 +23,7 @@ module GX system("fusermount -u #{mount_dir.shellescape}") fusermount_status = $? - if fusermount_status.success? == 0 + if fusermount_status.success? puts "Filesystem #{name} is now closed.".colorize(:green) else puts "Error: Unable to unmount filesystem #{name} (exit code: #{fusermount_status.exit_code}).".colorize(:red)