Skip to content

Commit 348a4d0

Browse files
committed
Code updates
1 parent b09bbfb commit 348a4d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Utilities/installer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from subprocess import call
44
from subprocess import check_output
55
from subprocess import CalledProcessError
6-
wrong_pass_count = 0
76

87

98
def passInput(args):
@@ -12,6 +11,11 @@ def passInput(args):
1211
try:
1312
install_proc = call("echo {} | sudo -S {}".format(sudo_pass, install_command), shell=True, cwd=args[1])
1413
except CalledProcessError:
14+
# TODO: fix incorrect sudo pass message
15+
# Password:Sorry, try again.
16+
# Password:
17+
# sudo: no password was provided
18+
# sudo: 1 incorrect password attempt
1519
print("\nWrong password\nRun updater again with '-fm argument'")
1620
sys_exit(1)
1721

0 commit comments

Comments
 (0)