Skip to content

Commit 8950109

Browse files
Update install.ps1.twig
1 parent 92cbda9 commit 8950109

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/cli/install.ps1.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ ${{ spec.title | upper }}_CLI_IMAGE_NAME = "{{ spec.title | lower }}/cli"
2828
${{ spec.title | upper }}_CLI_IMAGE_VERSION = "{{ sdk.version }}"
2929

3030
${{ spec.title | upper }}_EXECUTABLE_CONTENT = @"
31-
`$allowList` = 'version', 'help', 'init', 'client' {% for service in spec.services %}, '{{ service.name }}'{% endfor %}
31+
`$allowList = 'version', 'help', 'init', 'client' {% for service in spec.services %}, '{{ service.name }}'{% endfor %}
3232

33-
if ( `$args.count` -eq 0 ) {
34-
`$args` += 'help'
33+
if ( `$args.count -eq 0 ) {
34+
`$args += 'help'
3535
}
3636

37-
if ( -not (`$allowList` -contains `$args[0]`)) {
37+
if ( -not (`$allowList -contains `$args[0])) {
3838
Write-Host "Looks like a crazy hamster flipped a bit.`n`nUse {{ language.params.executableName }} help for a list of supported commands."
3939
exit 1
4040
}

0 commit comments

Comments
 (0)