Skip to content

Commit a4f609d

Browse files
committed
Addressed code review feedback
1 parent 143be97 commit a4f609d

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

setup-powershellget/Setup/ShortcutStartup.ps1

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,17 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
# ----------------------------------------------------------------------------------
14+
[CmdletBinding()]
15+
Param(
16+
[Parameter(Mandatory=$False, HelpMessage="Use Install parameter to install Azure modules from PowerShell Gallery.")]
17+
[switch]$Install
18+
)
1419

15-
function Get-ScriptDirectory
16-
{
17-
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
18-
Split-Path $Invocation.MyCommand.Path
19-
}
20-
21-
$modulePath = Join-Path $(Split-Path (Get-ScriptDirectory)) "Azure.psd1"
22-
Import-Module $modulePath
2320
cd c:\
2421
$welcomeMessage = @"
2522
For a list of all Azure cmdlets type 'help azure'.
26-
For a list of Windows Azure Pack cmdlets type 'Get-Command *wapack*'.
27-
For Node.js cmdlets type 'help node-dev'.
28-
For PHP cmdlets type 'help php-dev'.
23+
For a list of Azure Pack cmdlets type 'Get-Command *wapack*'.
2924
"@
3025
Write-Output $welcomeMessage
3126

32-
Set-ExecutionPolicy -Scope Process Undefined -Force
33-
if ($(Get-ExecutionPolicy) -eq "Restricted")
34-
{
35-
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
36-
}
37-
38-
$VerbosePreference="Continue"
27+
$VerbosePreference = "Continue"

0 commit comments

Comments
 (0)