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
This commit is contained in:
David Taylor 2021-04-28 14:10:35 +01:00 committed by GitHub
parent 8517b6f386
commit 8b87cb07c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class DiscourseCLI < Thor
text = STDIN.gets
if text.strip != "YES"
puts "aborting."
exit
exit 1
end
if options[:global]