BinaryONe commited on
Commit
632ea37
·
1 Parent(s): b2741c4
Files changed (1) hide show
  1. start.sh +1 -7
start.sh CHANGED
@@ -99,13 +99,7 @@ change_account() {
99
  if id -u "$username" >/dev/null 2>&1; then
100
  echo "* Trying Switching to user: $username *"
101
  expect -c "
102
- spawn su -p $username -c 'echo \"* Now running as: \$(whoami) *\"'
103
- expect \"Password:\"
104
- send \"$password\r\"
105
- interact
106
- "
107
- expect -c "
108
- spawn su -p $username
109
  expect \"Password:\"
110
  send \"$password\r\"
111
  interact
 
99
  if id -u "$username" >/dev/null 2>&1; then
100
  echo "* Trying Switching to user: $username *"
101
  expect -c "
102
+ spawn su -p $username -c {echo \"* Now running as: \$(whoami) *\"}
 
 
 
 
 
 
103
  expect \"Password:\"
104
  send \"$password\r\"
105
  interact