Skip to content

Commit

Permalink
fix: remove bashisms in install.sh (#7617)
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <me@jedevc.com>
  • Loading branch information
jedevc authored Jun 11, 2024
1 parent 5ca21d5 commit e82f931
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ latest_version() {
base_url() {
os="$(uname_os)"
arch="$(uname_arch)"
if [[ ! -z "$DAGGER_VERSION" ]]; then
if [ ! -z "$DAGGER_VERSION" ]; then
path="releases/${DAGGER_VERSION}"
elif [[ ! -z "$DAGGER_COMMIT" ]]; then
elif [ ! -z "$DAGGER_COMMIT" ]; then
path="main/${DAGGER_COMMIT}"
else
path="releases/$(latest_version)"
Expand All @@ -281,9 +281,9 @@ base_url() {
tarball() {
os="$(uname_os)"
arch="$(uname_arch)"
if [[ ! -z "$DAGGER_VERSION" ]]; then
if [ ! -z "$DAGGER_VERSION" ]; then
version="v${DAGGER_VERSION}"
elif [[ ! -z "$DAGGER_COMMIT" ]]; then
elif [ ! -z "$DAGGER_COMMIT" ]; then
version="${DAGGER_COMMIT}"
else
version="v$(latest_version)"
Expand Down

0 comments on commit e82f931

Please sign in to comment.