From 8b87cb07c374e4588bf29e49aa79f35a0eddb211 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 28 Apr 2021 14:10:35 +0100 Subject: [PATCH] DEV: Return a non-zero exit code when `discourse remap` is aborted (#12873) This makes it much easier to integrate the script with external tools --- script/discourse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/discourse b/script/discourse index 52eb3440f1e..fce25d81279 100755 --- a/script/discourse +++ b/script/discourse @@ -43,7 +43,7 @@ class DiscourseCLI < Thor text = STDIN.gets if text.strip != "YES" puts "aborting." - exit + exit 1 end if options[:global]