Skip to content

Commit c034537

Browse files
committed
feat: move occurances of appwrite in install scripts to params
1 parent 227f83f commit c034537

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

templates/cli/install.ps1.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<?php
2-
$version = $this->getParam('version', '');
3-
?>
4-
51
## <script src="/dist/scripts/cli-powershell.js"></script>
62
## <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/themes/prism-okaidia.min.css" rel="stylesheet" />
73
## <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/prism-core.min.js" data-manual></script>
@@ -29,7 +25,7 @@ ${{ spec.title | upper }}_EXECUTABLE_FILEPATH = Join-Path -Path ${{ spec.title |
2925
${{ spec.title | upper }}_CLI_IMAGE_NAME = "{{ spec.title | lower }}/cli"
3026

3127
# {{ spec.title | caseUcfirst }} CLI image version
32-
${{ spec.title | upper }}_CLI_IMAGE_VERSION = "$version"
28+
${{ spec.title | upper }}_CLI_IMAGE_VERSION = "{{ spec.version }}"
3329

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

templates/cli/install.sh.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
<?php
2-
$version = $this->getParam('version', '');
3-
?>
41
#!/bin/bash
52

63
## <script src="/dist/scripts/cli-bash.js"></script>
@@ -30,7 +27,7 @@ $version = $this->getParam('version', '');
3027
{{ spec.title | upper }}_CLI_IMAGE_NAME={{ spec.title | lower }}/cli
3128

3229
# {{ spec.title | caseUcfirst }} CLI image version
33-
{{ spec.title | upper }}_CLI_IMAGE_VERSION=$version
30+
{{ spec.title | upper }}_CLI_IMAGE_VERSION={{ spec.version }}
3431

3532
# sudo is required to copy executable to {{ spec.title | upper }}_INSTALL_DIR for linux
3633
USE_SUDO="false"

0 commit comments

Comments
 (0)