mirror of
https://github.com/wez/wezterm.git
synced 2024-11-25 21:07:39 +03:00
77024fa109
While using here-doc, lines are not expanded for parameter expansion if a part of starting _word_ (_EOT_ in this case) is quoted. This results in '$name' parameter appearing in auto-generated link without expansion. This commit removes the single quotes from here-doc thus sets the correct tag which is retrieved by '$1'. Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
18 lines
558 B
Bash
Executable File
18 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
name="$1"
|
|
|
|
notes=$(cat <<EOT
|
|
See https://wezfurlong.org/wezterm/changelog.html#$name for the changelog
|
|
|
|
If you're looking for nightly downloads or more detailed installation instructions:
|
|
|
|
[Windows](https://wezfurlong.org/wezterm/install/windows.html)
|
|
[macOS](https://wezfurlong.org/wezterm/install/macos.html)
|
|
[Linux](https://wezfurlong.org/wezterm/install/linux.html)
|
|
[FreeBSD](https://wezfurlong.org/wezterm/install/freebsd.html)
|
|
EOT
|
|
)
|
|
|
|
gh release view "$name" || gh release create --prerelease --notes "$notes" --title "$name" "$name"
|