From 47f6a218e32c6cd1793abd1ef8f111814e56e2aa Mon Sep 17 00:00:00 2001 From: "nahee.app" Date: Wed, 18 Dec 2024 18:21:13 +0900 Subject: [PATCH] Update zcli-login.expect --- bin/zcli-login.expect | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/zcli-login.expect b/bin/zcli-login.expect index 46f10fb6d..fb6138682 100644 --- a/bin/zcli-login.expect +++ b/bin/zcli-login.expect @@ -44,5 +44,16 @@ expect { } } +# Wait for successful login message +expect { + "Successfully logged in." { + puts "ZCLI login completed successfully." + } + timeout { + puts "Error: Timeout while waiting for 'Successfully logged in.' confirmation" + exit 1 + } +} + # Wait for the process to complete expect eof