From 9b6cd0cd7b86f63b365d2c1968fd19495b707758 Mon Sep 17 00:00:00 2001 From: nvbn Date: Tue, 28 Jun 2016 00:22:04 +0300 Subject: [PATCH] #524: Exit with `1` if no fixed command selected --- thefuck/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thefuck/main.py b/thefuck/main.py index 506a1a0..7a9c371 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -33,6 +33,8 @@ def fix_command(): if selected_command: selected_command.run(command) + else: + sys.exit(1) def print_alias(entry_point=True):