@adrifer/winix 0.3.0-preview.1 → 0.3.0-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -74,9 +74,10 @@ def confirm(message, yes):
|
|
|
74
74
|
return
|
|
75
75
|
# stdin contains this script, not an interactive terminal.
|
|
76
76
|
try:
|
|
77
|
-
with open("/dev/tty", "
|
|
77
|
+
with open("/dev/tty", "w") as tty:
|
|
78
78
|
tty.write(message + " [y/N] ")
|
|
79
79
|
tty.flush()
|
|
80
|
+
with open("/dev/tty", "r") as tty:
|
|
80
81
|
answer = tty.readline().strip().lower()
|
|
81
82
|
except OSError as error:
|
|
82
83
|
raise RuntimeError("Interactive confirmation unavailable; pass --yes only after reviewing the repository/script") from error
|