chore: check whether we're in an interactive session or not
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
147c0c8b37
commit
c58e986a87
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ def new_site(
|
||||||
use(site)
|
use(site)
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
if click.confirm("Do you want to rollback the failed site?", abort=True):
|
if sys.__stdin__.isatty() and click.confirm("Do you want to rollback the failed site?", abort=True):
|
||||||
rollback_callback.run()
|
rollback_callback.run()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue