Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After adding the hook to the $PROFILE, the checkver fails to execute. #34

Open
Vixb1122 opened this issue May 23, 2023 · 1 comment
Open

Comments

@Vixb1122
Copy link

Vixb1122 commented May 23, 2023

  1. Add Invoke-Expression (&scoop-search --hook) to Powershell profile
  2. Run .\bin\checkver.ps1 * -u to checkver buckets, get following output
❯❯ scoop-vself git:(master) .\bin\checkver.ps1 * -u
'scoop' not found / not a scoop shim.
Split-Path: D:\GitProjects\scoop-vself\bin\checkver.ps1:1:79
Line |
   1 |  … P_HOME = resolve-path (split-path (split-path (scoop which scoop))) }
     |                                                  ~~~~~~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
&: The term '/bin/checkver.ps1' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Suggestion [3,General]: The command /bin/checkver.ps1 was not found, but does exist in the current location. PowerShell does not load commands from the current location by default. If you trust this com
mand, instead type: ".\/bin/checkver.ps1". See "get-help about_Command_Precedence" for more details.                                                                                                      
@kazum1kun
Copy link

not sure if this checkver script is supposed to be used directly, is there a reason for not using scoop update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants