You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If scoop is installed in a path with spaces, eg. C:\Program Files\Scoop, then the module will fail with "The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable program."
win_scoop should handle spaces in paths gracefully and run the command successfully.
ACTUAL RESULTS
The parts of the path before and after the space are treated as separate arguments.
fatal: [b-windows.xxxx.lab]: FAILED! => changed=false
command: powershell.exe "C:\Program Files\scoop\shims\scoop.ps1" export
msg: Error checking installed packages
rc: 1
stderr: |-
C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again.
At line:1 char:1
+ C:\Program Files\scoop\shims\scoop.ps1 export
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
The text was updated successfully, but these errors were encountered:
SUMMARY
If scoop is installed in a path with spaces, eg. C:\Program Files\Scoop, then the module will fail with "The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable program."
ISSUE TYPE
COMPONENT NAME
win_scoop
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Windows Server 2022
STEPS TO REPRODUCE
EXPECTED RESULTS
win_scoop should handle spaces in paths gracefully and run the command successfully.
ACTUAL RESULTS
The parts of the path before and after the space are treated as separate arguments.
The text was updated successfully, but these errors were encountered: