Fix Get-Apps function parameter name

This commit is contained in:
Zehadi Alam
2024-07-12 23:46:01 -04:00
parent ab58b27a1d
commit ddf9c1f986
+3 -3
View File
@@ -1890,9 +1890,9 @@ function Get-StoreApp {
function Get-Apps { function Get-Apps {
param ( param (
[string]$AppsList [string]$AppList
) )
$apps = Get-Content -Path $AppsList -Raw | ConvertFrom-Json $apps = Get-Content -Path $AppList -Raw | ConvertFrom-Json
if (-not $apps) { if (-not $apps) {
WriteLog "No apps were specified in AppList.json file." WriteLog "No apps were specified in AppList.json file."
return return
@@ -3349,7 +3349,7 @@ if ($InstallApps) {
exit exit
} }
WriteLog "$AppsPath\InstallAppsandSysprep.cmd found" WriteLog "$AppsPath\InstallAppsandSysprep.cmd found"
Get-Apps -AppsList "$AppsPath\AppList.json" Get-Apps -AppList "$AppsPath\AppList.json"
if (-not $InstallOffice) { if (-not $InstallOffice) {
#Modify InstallAppsandSysprep.cmd to REM out the office install command #Modify InstallAppsandSysprep.cmd to REM out the office install command
$CmdContent = Get-Content -Path "$AppsPath\InstallAppsandSysprep.cmd" $CmdContent = Get-Content -Path "$AppsPath\InstallAppsandSysprep.cmd"