Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ensure TabExpansion function exists before rename. #54

Merged
merged 1 commit into from

2 participants

@ArturDorochowicz

Prevents an error in environment where there is no initial TabExpansion function defined.
This seems strange, but that's what started occurring on my system.

@ArturDorochowicz ArturDorochowicz Ensure TabExpansion function exists before rename.
Prevents an error in environment where there is no initial TabExpansion function defined.
a9ecf24
@JamesKovacs JamesKovacs merged commit fd105dc into psake:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 11, 2013
  1. @ArturDorochowicz

    Ensure TabExpansion function exists before rename.

    ArturDorochowicz authored
    Prevents an error in environment where there is no initial TabExpansion function defined.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tabexpansion/Readme.PsakeTab.txt
View
2  tabexpansion/Readme.PsakeTab.txt
@@ -12,7 +12,7 @@ Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
. ./PsakeTabExpansion.ps1
Pop-Location
-if(-not (Test-Path Function:\DefaultTabExpansion)) {
+if((Test-Path Function:\TabExpansion) -and (-not (Test-Path Function:\DefaultTabExpansion))) {
Rename-Item Function:\TabExpansion DefaultTabExpansion
}
Something went wrong with that request. Please try again.