Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export-PSGraph System error when $OFS is not " " #106

Open
Szeraax opened this issue Nov 20, 2022 · 0 comments · May be fixed by #107
Open

Export-PSGraph System error when $OFS is not " " #106

Szeraax opened this issue Nov 20, 2022 · 0 comments · May be fixed by #107

Comments

@Szeraax
Copy link

Szeraax commented Nov 20, 2022

My $OFS is set to "|||". When I run Export-AzViz, I get the following error:

Error: : syntax error in line 1 near '|'

Export-PSGraph: C:\Users...\PowerShell\Modules\AzViz\1.2.1\src\public\Export-AzViz.ps1:274
Line |
274 | "@ | Export-PSGraph -ShowGraph:$Show -OutputFormat $OutputFormat -Des …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| System error.

If I change my $OFS back to " " like a default install, then it works. Issue looks to be that $graph is an array. Fix should be doing something like $($graph -join ' ') instead.

@Szeraax Szeraax linked a pull request Nov 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant