aboutsummaryrefslogtreecommitdiff
path: root/scripts/findFileRecursivelyUp.ps1
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-07 17:47:53 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-07 17:47:53 -0800
commit1e3435e32bc96ad59534238c45ebe00c708daf37 (patch)
tree537fa027b41db1a3c7b12b50445d6955a518b999 /scripts/findFileRecursivelyUp.ps1
parent116914e110e06183eaa8626accf1403637b6b681 (diff)
parent3aac3957ae9053eb3ffb97bcc49148e7b0a4c050 (diff)
downloadvcpkg-1e3435e32bc96ad59534238c45ebe00c708daf37.tar.gz
vcpkg-1e3435e32bc96ad59534238c45ebe00c708daf37.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Diffstat (limited to 'scripts/findFileRecursivelyUp.ps1')
-rw-r--r--scripts/findFileRecursivelyUp.ps118
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/findFileRecursivelyUp.ps1 b/scripts/findFileRecursivelyUp.ps1
deleted file mode 100644
index 4b6409e8c..000000000
--- a/scripts/findFileRecursivelyUp.ps1
+++ /dev/null
@@ -1,18 +0,0 @@
-[CmdletBinding()]
-param(
- [ValidateNotNullOrEmpty()]
- [Parameter(Mandatory=$true)][string]$startingDir,
- [ValidateNotNullOrEmpty()]
- [Parameter(Mandatory=$true)][string]$filename
-)
-
-$ErrorActionPreference = "Stop"
-$currentDir = $startingDir
-
-while (!($currentDir -eq "") -and !(Test-Path "$currentDir\$filename"))
-{
- Write-Verbose "Examining $currentDir for $filename"
- $currentDir = Split-path $currentDir -Parent
-}
-Write-Verbose "Examining $currentDir for $filename - Found"
-return $currentDir \ No newline at end of file