BinaryONe commited on
Commit
cf60697
·
1 Parent(s): 632ea37
Files changed (1) hide show
  1. start.sh +1 -1
start.sh CHANGED
@@ -99,7 +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
 
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
103
  expect \"Password:\"
104
  send \"$password\r\"
105
  interact