mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Update example usage in Invoke-AppsScript.ps1 and modify Orchestrator.ps1 to include AppsScript execution logic
- Changed example variable checks in Invoke-AppsScript.ps1 to reflect accurate usage of the AppsScriptVariables hashtable. - Removed Invoke-AppsScript.ps1 from the script list in Orchestrator.ps1 and added logic to invoke it conditionally based on the presence of AppsScriptVariables.json. - Enhanced output messages for clarity during script execution. - Updated AppsScriptVariables parameter description in BuildFFUVM.ps1 to clarify its purpose and usage.
This commit is contained in:
@@ -38,8 +38,8 @@ else {
|
||||
|
||||
# Example of how to use the AppsScriptVariables hashtable to control script execution
|
||||
|
||||
# Example: Check if a variable named 'foo' is set to string 'true' and run a script accordingly
|
||||
# if ($AppsScriptVariables['foo'] -eq 'true') {
|
||||
# Example: Check if a variable named 'foo' is set to string 'bar' and run a script accordingly
|
||||
# if ($AppsScriptVariables['foo'] -eq 'bar') {
|
||||
# Write-Host "Foo would have installed"
|
||||
# }
|
||||
# else {
|
||||
@@ -47,11 +47,11 @@ else {
|
||||
# }
|
||||
|
||||
# Example: Check if a variable named 'foo' is set to boolean $true and run a script accordingly
|
||||
# if ($AppsScriptVariables['foo'] -eq $true) {
|
||||
# Write-Host "Foo would have been installed"
|
||||
# if ($AppsScriptVariables[Teams] -eq $true) {
|
||||
# Write-Host "Teams would have been installed"
|
||||
# }
|
||||
# else {
|
||||
# Write-Host "Foo would not have installed"
|
||||
# Write-Host "Teams would not have been installed"
|
||||
# }
|
||||
|
||||
# Your code below here
|
||||
|
||||
Reference in New Issue
Block a user