Skip to content

Commit f632567

Browse files
committed
Fix download fails with curl usage error on ZSH (#531)
1 parent ab14a41 commit f632567

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/bash/sdkman-utils.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ function __sdkman_secure_curl_download {
4343
curl_params="$curl_params --cookie $cookie"
4444
fi
4545

46-
curl ${curl_params} "$1"
46+
if [[ "$zsh_shell" == 'true' ]]; then
47+
curl ${=curl_params} "$1"
48+
else
49+
curl ${curl_params} "$1"
50+
fi
4751
}
4852

4953
function __sdkman_secure_curl_with_timeouts {

0 commit comments

Comments
 (0)