v1.0.1 - WizardHat

This commit is contained in:
Alan Mason 2017-11-25 16:33:26 -08:00
commit 546dc77f03

View file

@ -1,12 +1,12 @@
# Wizard Kit: Download kit components # Wizard Kit: Download kit components
## Init ## ## Init ##
#Requires -Version 3.0
clear clear
$host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool" $host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool"
$wd = $(Split-Path $MyInvocation.MyCommand.Path) $wd = $(Split-Path $MyInvocation.MyCommand.Path)
$bin = (Get-Item $wd).Parent.FullName $bin = (Get-Item $wd).Parent.FullName
$root = (Get-Item "$bin\..").FullName # Get-Item $bin fails $root = (Get-Item $bin -Force).Parent.FullName
# (I'm assuming that starting with a '.' is the issue)
$tmp = "{0}\tmp" -f $bin $tmp = "{0}\tmp" -f $bin
$errors = 0 $errors = 0
pushd "$wd" pushd "$wd"