fix: wrong comparison #28

Merged
glenux merged 1 commit from feature/16-handle-fusermount-u-return-codes into develop 2023-11-20 11:40:39 +00:00

View file

@ -23,7 +23,7 @@ module GX
system("fusermount -u #{mount_dir.shellescape}") system("fusermount -u #{mount_dir.shellescape}")
fusermount_status = $? fusermount_status = $?
if fusermount_status.success? == 0 if fusermount_status.success?
puts "Filesystem #{name} is now closed.".colorize(:green) puts "Filesystem #{name} is now closed.".colorize(:green)
else else
puts "Error: Unable to unmount filesystem #{name} (exit code: #{fusermount_status.exit_code}).".colorize(:red) puts "Error: Unable to unmount filesystem #{name} (exit code: #{fusermount_status.exit_code}).".colorize(:red)