Skip to content

Commit

Permalink
Update Azure-Blob-FiletypeAnalysis.ps1
Browse files Browse the repository at this point in the history
Bugfix for array edgecase
  • Loading branch information
aashishr authored Sep 24, 2019
1 parent 5e791d8 commit c06ff68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PowerShell Samples/Azure-Blob-FiletypeAnalysis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ function Run-MainScript {
## Get a list of STORAGE ACCOUNTs
foreach( $sub in $SUBSCRIPTION_LIST )
{
$STORAGEACCOUNTLIST += (EnumerateStorageAccounts -subscription $sub)
$STORAGEACCOUNTLIST += (EnumerateStorageAccounts -subscription $sub)
if( $STORAGEACCOUNTLIST -isnot [array] ) { $STORAGEACCOUNTLIST = @($STORAGEACCOUNTLIST) }
}

## Get a list of BLOB STORAGE CONTAINERS
Expand Down

0 comments on commit c06ff68

Please sign in to comment.