Skip to content

Commit f8bc00d

Browse files
committed
fix installation username
1 parent e80d583 commit f8bc00d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def main():
9191
command = parse_args(answers)
9292
# subprocess.run('bash scripts/install.sh ' + command, shell=True)
9393
print('bash install.sh ' + command)
94-
subprocess.run('bash install.sh ' + command, shell=True)
94+
subprocess.run(['bash', 'install.sh'] + command.split())
9595

9696

9797
if __name__ == '__main__':

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ echo -e "${COLOR}[4/5]${ENDC} Running mytoninstaller"
138138

139139
parent_name=$(ps -p $PPID -o comm=)
140140
user=$(whoami)
141-
if [ "$parent_name" = "sudo" ] || [ "$parent_name" = "su" ]; then
141+
if [ "$parent_name" = "sudo" ] || [ "$parent_name" = "su" ] || [ "$parent_name" = "python3" ]; then
142142
user=$(logname)
143143
fi
144144
echo "User: $user"

0 commit comments

Comments
 (0)