Skip to content

Commit 0e963a0

Browse files
authored
Merge pull request #180 from appwrite/TorstenDittmann-patch-2
fix(powershell): escape used variables in script
2 parents aa0ab8d + 1b044b0 commit 0e963a0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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
}

tests/SDKTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function testHTTPSuccess()
254254
->setLicenseContent('demo license')
255255
->setChangelog('--changelog--')
256256
->setDefaultHeaders([
257-
'X-Appwrite-Response-Format' => '0.7.0',
257+
'X-Appwrite-Response-Format' => '0.8.0',
258258
])
259259
;
260260

0 commit comments

Comments
 (0)