Fix install.sh when no version provided
This fixes a bug that I introduced in https://github.com/dagger/dagger/pull/1819 Mistakes that get fixed before anyone notices never happened. Focus on the learnings, quick fixes and let resilient systems emerge. 💪 Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
This commit is contained in:
parent
16450c3263
commit
6c1d7ec19f
@ -267,7 +267,7 @@ latest_version() {
|
||||
base_url() {
|
||||
os="$(uname_os)"
|
||||
arch="$(uname_arch)"
|
||||
version="${DAGGER_VERSION?:$(latest_version)}"
|
||||
version="${DAGGER_VERSION:-$(latest_version)}"
|
||||
url="${base}/${name}/releases/${version}"
|
||||
echo "$url"
|
||||
}
|
||||
@ -275,7 +275,7 @@ base_url() {
|
||||
tarball() {
|
||||
os="$(uname_os)"
|
||||
arch="$(uname_arch)"
|
||||
version="${DAGGER_VERSION?:$(latest_version)}"
|
||||
version="${DAGGER_VERSION:-$(latest_version)}"
|
||||
name="${name}_v${version}_${os}_${arch}"
|
||||
if [ "$os" = "windows" ]; then
|
||||
name="${name}.zip"
|
||||
|
Reference in New Issue
Block a user