Skip to content

Commit

Permalink
use self.eject
Browse files Browse the repository at this point in the history
Signed-off-by: gorgobacka <tho.b.j@gmx.de>
  • Loading branch information
gorgobacka authored and JoeLametta committed May 3, 2019
1 parent 135cc9c commit eff5fee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion whipper/command/cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def do(self):

self.doCommand()

if self.options.eject in ('success', 'always'):
if (self.options.eject == 'success' and self.eject or
self.options.eject == 'always'):
utils.eject_device(self.device)

return None
Expand Down

0 comments on commit eff5fee

Please sign in to comment.