Skip to content

Commit cfb2958

Browse files
authored
Fix imports in detect-sudo (#219)
1 parent 59e3c61 commit cfb2958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/detect-sudo/customize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import sys
66
import grp
77
import threading
8+
import getpass
89

910

1011
def preprocess(i):
@@ -125,7 +126,6 @@ def prompt_sudo():
125126
if os.geteuid() != 0 and not is_user_in_sudo_group(): # No sudo required for root user
126127

127128
# Prompt for the password
128-
import getpass
129129

130130
if not os.isatty(sys.stdin.fileno()):
131131
print("Skipping password prompt - non-interactive terminal detected!")

0 commit comments

Comments
 (0)