Skip to content

Commit

Permalink
Update zcli-login.expect
Browse files Browse the repository at this point in the history
  • Loading branch information
nahbee10 authored Dec 18, 2024
1 parent 47f6a21 commit a02487a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/zcli-login.expect
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spawn zcli login -i

# Handle Subdomain prompt
expect {
"Subdomain:" {
-re "Subdomain:" {
send "$subdomain\r"
}
timeout {
Expand All @@ -24,7 +24,7 @@ expect {

# Handle Email prompt
expect {
"Email:" {
-re "Email:" {
send "$email\r"
}
timeout {
Expand All @@ -35,7 +35,7 @@ expect {

# Handle API Token prompt
expect {
"API Token:" {
-re "API Token:" {
send "$token\r"
}
timeout {
Expand All @@ -44,9 +44,9 @@ expect {
}
}

# Wait for successful login message
# Wait for "Successfully logged in." confirmation
expect {
"Successfully logged in." {
-re "Successfully logged in\\." {
puts "ZCLI login completed successfully."
}
timeout {
Expand Down

0 comments on commit a02487a

Please sign in to comment.