Skip to content

Commit

Permalink
Merge pull request #299 from basilelt/main
Browse files Browse the repository at this point in the history
Update user_id value in .castor/docker.php for Windows compatibility
  • Loading branch information
lyrixx authored Apr 19, 2024
2 parents 95a0276 + 8887171 commit ab4b124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .castor/docker.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ function create_default_context(): Context
],
'macos' => false,
'power_shell' => false,
'user_id' => posix_geteuid(),
// check if posix_geteuid is available, if not, use getmyuid (windows)
'user_id' => function_exists('posix_geteuid') ? posix_geteuid() : getmyuid(),
'root_dir' => \dirname(__DIR__),
];

Expand Down

0 comments on commit ab4b124

Please sign in to comment.