Skip to content

Commit

Permalink
Update install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
hunnywar authored Jan 16, 2025
1 parent ef2bcf6 commit a772f73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else {
Write-Host "Default installation directory: $destination"
Write-Host "You can override this by setting the DAYTONA_PATH environment variable."
}

Write-Host "" # Empty line
# Create destination directory if it doesn't exist
try {
if (!(Test-Path -Path $destination)) {
Expand All @@ -33,7 +33,7 @@ catch {
Write-Error "Failed to create installation directory: $_"
exit 1
}

Write-Host "" # Empty line
# File to download
$outputFile = "$destination\daytona.exe"

Expand All @@ -50,7 +50,7 @@ catch {
Write-Error "Failed to download Daytona binary: $_"
exit 1
}

Write-Host "" # Empty line
# Set executable permissions
try {
Write-Host "Setting executable permissions for Daytona binary..."
Expand All @@ -61,7 +61,7 @@ catch {
Write-Error "Failed to set executable permissions: $_"
exit 1
}

Write-Host "" # Empty line
# Add to PATH if not already present
try {
if (-not ($env:Path -split ';' | ForEach-Object { $_.TrimEnd('\') } | Where-Object { $_ -eq $destination })) {
Expand Down

0 comments on commit a772f73

Please sign in to comment.