From 6c1d7ec19ff4bfac826ab34d96c5d374f957ce04 Mon Sep 17 00:00:00 2001 From: Gerhard Lazu Date: Thu, 24 Mar 2022 23:53:45 +0000 Subject: [PATCH] Fix install.sh when no version provided MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 72efc0bd..e1078a24 100755 --- a/install.sh +++ b/install.sh @@ -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"