Skip to content

Commit

Permalink
skip chmod if on windows during install
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjektGopher committed Jul 31, 2023
1 parent 2ac31cf commit ab4d41f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ public function handle(): int
$this->installHook($hook);
});

if ($this->option('verbose')) {
$this->info('Verifying hooks are executable...');
if (! Whisky::isWindows()) {
if ($this->option('verbose')) {
$this->info('Verifying hooks are executable...');
}
exec('chmod +x '.Whisky::cwd('.git/hooks').'/*');
exec('chmod +x '.Whisky::base_path('bin/run-hook'));
}
exec('chmod +x '.Whisky::cwd('.git/hooks').'/*');
exec('chmod +x '.Whisky::base_path('bin/run-hook'));

$this->info('Git hooks installed successfully.');

Expand Down

0 comments on commit ab4d41f

Please sign in to comment.