File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
. PARAMETER UserMode
18
18
The downloaded module will be moved to the user profile, rather than program files.
19
+
20
+ . PARAMETER Scope
21
+ By default, the downloaded module will be moved to program files.
22
+ Setting this to 'CurrentUser' installs to the userprofile of the current user.
19
23
20
24
. PARAMETER Force
21
25
The install script will overwrite an existing module.
@@ -28,6 +32,10 @@ Param (
28
32
[switch ]
29
33
$UserMode ,
30
34
35
+ [ValidateSet (' AllUsers' , ' CurrentUser' )]
36
+ [string ]
37
+ $Scope = " AllUsers" ,
38
+
31
39
[switch ]
32
40
$Force
33
41
)
@@ -43,6 +51,15 @@ $BaseUrl = "https://github.com/<InsertUsernameHere>/þnameþ"
43
51
$SubFolder = " þnameþ"
44
52
# endregion Configuration for cloning script
45
53
54
+ # region Parameter Calculation
55
+ $doUserMode = $false
56
+ if ($UserMode ) { $doUserMode = $true }
57
+ if ($install_CurrentUser ) { $doUserMode = $true }
58
+ if ($Scope -eq ' CurrentUser' ) { $doUserMode = $true }
59
+
60
+ if ($install_Branch ) { $Branch = $install_Branch }
61
+ # endregion Parameter Calculation
62
+
46
63
# region Utility Functions
47
64
function Compress-Archive
48
65
{
You can’t perform that action at this time.
0 commit comments