File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,9 @@ public function login()
381381 if ($ this ->output && $ this ->input && $ this ->input ->isInteractive ()) {
382382 if ($ this ->config ()->getSessionId () !== 'default ' || count ($ this ->api ()->listSessionIds ()) > 1 ) {
383383 $ this ->stdErr ->writeln (sprintf ('The current session ID is: <info>%s</info> ' , $ this ->config ()->getSessionId ()));
384- $ this ->stdErr ->writeln (sprintf ('To switch sessions, run: <info>%s session:switch</info> ' , $ this ->config ()->get ('application.executable ' )));
384+ if (!$ this ->config ()->isSessionIdFromEnv ()) {
385+ $ this ->stdErr ->writeln (sprintf ('To switch sessions, run: <info>%s session:switch</info> ' , $ this ->config ()->get ('application.executable ' )));
386+ }
385387 $ this ->stdErr ->writeln ('' );
386388 }
387389
You can’t perform that action at this time.
0 commit comments