Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ce135e

Browse files
committed
chore: use command -v instead of which
The `which` command is not always available whereas `command -v` is a POSIX built-in.
1 parent d77df1b commit 0ce135e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/Install/CodeEnvironment/ClaudeCode.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function systemDetectionConfig(Platform $platform): array
2525
{
2626
return match ($platform) {
2727
Platform::Darwin, Platform::Linux => [
28-
'command' => 'which claude',
28+
'command' => 'command -v claude',
2929
],
3030
Platform::Windows => [
3131
'command' => 'where claude 2>null',

‎src/Install/CodeEnvironment/VSCode.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function systemDetectionConfig(Platform $platform): array
2626
'paths' => ['/Applications/Visual Studio Code.app'],
2727
],
2828
Platform::Linux => [
29-
'command' => 'which code',
29+
'command' => 'command -v code',
3030
],
3131
Platform::Windows => [
3232
'paths' => [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /