Permalink
Browse files

Merge branch 'master' into chocolatey-uninstall

  • Loading branch information...
dahlbyk committed Jan 30, 2017
2 parents 9f6b256 + 5fe6233 commit 6fd6a3186adb41c549e555a1947ab9dbafba5844
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Utils.ps1
View
@@ -84,7 +84,8 @@ function Add-PoshGitToProfile([switch]$AllHosts, [switch]$Force, [switch]$WhatIf
$profilePath = if ($AllHosts) { $PROFILE.CurrentUserAllHosts } else { $PROFILE.CurrentUserCurrentHost }
# Under test, we override some variables using $args as a backdoor.
if ($args.Count -gt 0) {
# TODO: Can we just turn these into optional parameters with well-defined behavior?
if (($args.Count -gt 0) -and ($args[0] -is [string])) {
$profilePath = [string]$args[0]
$underTest = $true
if ($args.Count -gt 1) {
@@ -205,7 +206,7 @@ function Test-InPSModulePath {
function Test-PoshGitImportedInScript {
param (
[Parameter(Position=0, Mandatory=$true)]
[Parameter(Position=0)]
[string]
$Path
)

0 comments on commit 6fd6a31

Please sign in to comment.