Compare commits

...

2 commits

Author SHA1 Message Date
eb42b28841 Merge pull request 'fix: wrong comparison' (#28) from feature/16-handle-fusermount-u-return-codes into develop
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #28
2023-11-20 11:40:39 +00:00
f05ee6b1b6 fix: wrong comparison
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-11-20 12:40:13 +01:00

View file

@ -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)