fix for bash-4 (#923)

bash-4 does not support process substitution
This commit is contained in:
Szymon Siwek
2021-06-15 23:06:24 +02:00
committed by Marco Vermeulen
parent cf834c96f2
commit e47441db64

View File

@@ -32,9 +32,10 @@ __sdkman_complete_command() {
done
;;
install|list)
curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all" | \
while IFS= read -d, -r candidate; do
candidates+=($candidate)
done < <(curl --silent "${SDKMAN_CANDIDATES_API}/candidates/all")
done
;;
env)
candidates=("init install clear")