Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Fix PowerShell installation error with global drive#246

Merged
jhaynie merged 1 commit intomainfrom
devin/1745958147-fix-powershell-global-drive-error
Apr 29, 2025
Merged

Fix PowerShell installation error with global drive#246
jhaynie merged 1 commit intomainfrom
devin/1745958147-fix-powershell-global-drive-error

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Fix PowerShell Installation Error with Global Drive

Issue

Windows users were encountering an error during installation of the Agentuity CLI:

Cannot find drive. A drive with the name 'global' does not exist

This error occurred at line 308 in the install.ps1 script when trying to use Set-Item with a path that included the "global:" scope prefix.

Fix

Modified the PowerShell function creation to use the proper Function: drive instead of the "global:" scope prefix. This is the correct way to create functions in PowerShell and avoids the drive error.

Changes

  • Removed the line that set $tempFunctionName = "global:$exeName"
  • Changed Set-Item -Path $tempFunctionName -Value $scriptBlock -Force to Set-Item -Path "Function:\$exeName" -Value $scriptBlock -Force

Testing

This change should fix the Windows installation error without affecting any other functionality.

Link to Devin run

https://app.devin.ai/sessions/e5ef2f0da8ae41e8b2b4a0544dccd16e

Requested by: jhaynie@agentuity.com

Co-Authored-By: jhaynie@agentuity.com <jhaynie@gmail.com>
@devin-ai-integration devin-ai-integration Bot requested a review from jhaynie April 29, 2025 20:23
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@jhaynie jhaynie merged commit 54f3e72 into main Apr 29, 2025
12 checks passed
@jhaynie jhaynie deleted the devin/1745958147-fix-powershell-global-drive-error branch April 29, 2025 20:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant