Merge pull request #1853 from gerhard/fix-default-version-install-sh
Fix install.sh when no version provided
This commit is contained in:
commit
6ce2673d22
@ -267,7 +267,7 @@ latest_version() {
|
|||||||
base_url() {
|
base_url() {
|
||||||
os="$(uname_os)"
|
os="$(uname_os)"
|
||||||
arch="$(uname_arch)"
|
arch="$(uname_arch)"
|
||||||
version="${DAGGER_VERSION?:$(latest_version)}"
|
version="${DAGGER_VERSION:-$(latest_version)}"
|
||||||
url="${base}/${name}/releases/${version}"
|
url="${base}/${name}/releases/${version}"
|
||||||
echo "$url"
|
echo "$url"
|
||||||
}
|
}
|
||||||
@ -275,7 +275,7 @@ base_url() {
|
|||||||
tarball() {
|
tarball() {
|
||||||
os="$(uname_os)"
|
os="$(uname_os)"
|
||||||
arch="$(uname_arch)"
|
arch="$(uname_arch)"
|
||||||
version="${DAGGER_VERSION?:$(latest_version)}"
|
version="${DAGGER_VERSION:-$(latest_version)}"
|
||||||
name="${name}_v${version}_${os}_${arch}"
|
name="${name}_v${version}_${os}_${arch}"
|
||||||
if [ "$os" = "windows" ]; then
|
if [ "$os" = "windows" ]; then
|
||||||
name="${name}.zip"
|
name="${name}.zip"
|
||||||
|
Reference in New Issue
Block a user