File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
9797if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ echo -e "${COLOR}[4/5]${ENDC} Running mytoninstaller"
138138
139139parent_name=$( ps -p $PPID -o comm=)
140140user=$( 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)
143143fi
144144echo " User: $user "
You can’t perform that action at this time.
0 commit comments