fix get script username

This commit is contained in:
xiaomlove
2025-01-19 19:09:16 +08:00
parent 971a4b7702
commit 02a95cba71
5 changed files with 23 additions and 10 deletions
+6 -1
View File
@@ -102,7 +102,12 @@ class Test extends Command
*/
public function handle()
{
$this->info("haha");
$whoami = executeCommand('whoami');
$user = get_current_user();
$uid = getmyuid();
$uid2 = posix_getuid();
$info = posix_getpwuid($uid2);
dd($whoami, $user, $uid, $uid2, $info);
}
}