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:
parent
8517b6f386
commit
8b87cb07c3
|
@ -43,7 +43,7 @@ class DiscourseCLI < Thor
|
||||||
text = STDIN.gets
|
text = STDIN.gets
|
||||||
if text.strip != "YES"
|
if text.strip != "YES"
|
||||||
puts "aborting."
|
puts "aborting."
|
||||||
exit
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
if options[:global]
|
if options[:global]
|
||||||
|
|
Loading…
Reference in New Issue