updating all recipes to use dynamic helper script loading (#69)

This commit is contained in:
Yosef Durr
2018-09-11 14:35:18 -07:00
committed by GitHub
parent 1838966829
commit 01c3847732
6 changed files with 55 additions and 37 deletions

View File

@@ -6,11 +6,7 @@ Disable-UAC
# Get the base URI path from the ScriptToCall value
$bstrappackage = "-bootstrapPackage"
$Boxstarter | Foreach-Object { write-host "The key name is $_.Key and value is $_.Value" }
$helperUri = $Boxstarter['ScriptToCall']
write-host "ScriptToCall is $helperUri"
$strpos = $helperUri.IndexOf($bstrappackage)
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
$helperUri = $helperUri.TrimStart("'", " ")