Skip to content

Commit

Permalink
Merge pull request #180 from appwrite/TorstenDittmann-patch-2
Browse files Browse the repository at this point in the history
fix(powershell): escape used variables in script
  • Loading branch information
eldadfux authored May 19, 2021
2 parents aa0ab8d + 1b044b0 commit 0e963a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions templates/cli/install.ps1.twig
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ ${{ spec.title | upper }}_CLI_IMAGE_NAME = "{{ spec.title | lower }}/cli"
${{ spec.title | upper }}_CLI_IMAGE_VERSION = "{{ sdk.version }}"

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

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

if ( -not ($allowList -contains $args[0])) {
if ( -not (`$allowList -contains `$args[0])) {
Write-Host "Looks like a crazy hamster flipped a bit.`n`nUse {{ language.params.executableName }} help for a list of supported commands."
exit 1
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SDKTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function testHTTPSuccess()
->setLicenseContent('demo license')
->setChangelog('--changelog--')
->setDefaultHeaders([
'X-Appwrite-Response-Format' => '0.7.0',
'X-Appwrite-Response-Format' => '0.8.0',
])
;

Expand Down

0 comments on commit 0e963a0

Please sign in to comment.