mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-01-30 09:12:44 -05:00
Change random string generation to be ansible friendly (#496)
This commit is contained in:
committed by
Marco Vermeulen
parent
9d7c88a318
commit
decede2354
@@ -101,7 +101,7 @@ function __sdkman_download {
|
||||
|
||||
local platform_parameter="$(echo $SDKMAN_PLATFORM | tr '[:upper:]' '[:lower:]')"
|
||||
local download_url="${SDKMAN_CURRENT_API}/broker/download/${candidate}/${version}/${platform_parameter}"
|
||||
local base_name="$(cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
|
||||
local base_name="$(head /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
|
||||
local zip_archive_target="${SDKMAN_DIR}/archives/${candidate}-${version}.zip"
|
||||
|
||||
#pre-installation hook: implements function __sdkman_pre_installation_hook
|
||||
|
||||
Reference in New Issue
Block a user