Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure TabExpansion function exists before rename.

Prevents an error in environment where there is no initial TabExpansion function defined.
  • Loading branch information...
commit fcd09c6f622076729dd989029db4969ab9c27e9e 1 parent 6ae7e29
@ArturDorochowicz ArturDorochowicz authored committed
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
}
Please sign in to comment.
Something went wrong with that request. Please try again.