16 Commits

Author SHA1 Message Date
Hsiao-nan Cheung 92b71c6057 refactor(core): Get rid of 'fullpath' (#3533) 2024-04-10 14:55:20 +08:00
Hsiao-nan Cheung 6772e61b3d refactor(core): Rewrite and separate path-related functions to system.ps1 (#5836) 2024-03-27 17:32:39 +08:00
Gerardo Grignoli ab34b7fb61 feat(core): Allow global install of PowerShell modules (#5611)
* Allow global install of PowerShell modules to $env:ProgramFiles\WindowsPowerShell\Modules

* tabs vs spaces

* Updated CHANGELOG.md

* Changed global install of PowerShell modules to $globaldir\Modules
2023-10-05 16:40:03 +05:30
AkariiinMKII 740322f74f fix(psmodules): Remove folder recursively when unlinking previous module path (#5127)
* Update psmodules.ps1

* Update CHANGELOG.md

* Update CHANGELOG.md [skip ci]

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-08-29 21:50:27 +05:30
Hsiao-nan Cheung 1985a05b59 refactor(path): Use 'Convert-Path()' instead of 'Resolve-Path()' (#5109) 2022-08-22 15:12:46 +08:00
Kinshuk Bairagi d29e336417 fix(install): Fix Junction creation during installation inside containers (#4837) 2022-03-23 13:43:44 +08:00
Hsiao-nan Cheung 3f4c191faa refactor(rmdir): Use 'Remove-Item' instead of 'rmdir' (#4691) 2022-01-26 02:34:21 +08:00
Hsiao-nan Cheung 98ea7a5e82 refactor(mklink): Use 'New-Item' instead of 'mklink' (#4690) 2022-01-26 01:13:09 +08:00
Niklas H 0550605de1 fix(comspec): Escape variables when calling COMSPEC commands (#3538)
COMSPEC commands fail when called with unescaped directory arguments which contain white spaces (typically a compound user name).

- Closes lukesampson/scoop-extras#1781
- Closes lukesampson/scoop-extras#2389
- Closes #2801

Signed-off-by: Niklas H. <Typhoon.CommanderCool@gmail.com>
2019-07-02 15:46:43 +02:00
krokofant 5a51098df5 Fix #2745 Workaround Microsofts syntactic PSModulePath (#2748)
* Workaround Microsofts syntactic PSModulePath

The default user PSModulePath is "$env:USERPROFILE\Documents\WindowsPowerShell\Modules". I the user env variable PSModulePath actually exists the default path is omitted - so we need to explicitly add it.
2018-11-08 19:35:02 +01:00
Steve Baker 31075f6200 Clean up some error messages (#2032)
Removes extra 'ERROR' in text where the `error` method is used.
Converts some `write-host "error message"` to use the `error` method
Converts some `write-host "error message"; exit 1` to use the `abort`
method.
2018-03-12 18:32:57 +01:00
Richard Kuhnt 609329bd2d Use fixed path to cmd.exe (#1921)
* Use fixed path to cmd.exe

* Use $env:COMSPEC instead of $env:WINDIR
2017-12-24 13:09:41 +01:00
Richard Kuhnt a8de45f214 Use write-output instead of echo 2017-05-27 13:15:34 +02:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Luke Sampson faa91eadc6 fix AppVeyor tests 2017-01-22 14:47:47 +11:00
Luke Sampson d15bb91cb7 Add support for installing PowerShell modules (see #1246) 2017-01-22 14:44:54 +11:00