Skip to content

Commit 19e5c08

Browse files
kr5turemarc0der
authored andcommitted
Add missing quotes when handling file paths within install command
1 parent f284bc4 commit 19e5c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/bash/sdkman-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function __sdkman_download() {
120120
version="$2"
121121

122122
metadata_folder="${SDKMAN_DIR}/var/metadata"
123-
mkdir -p ${metadata_folder}
123+
mkdir -p "${metadata_folder}"
124124

125125
local platform_parameter="$SDKMAN_PLATFORM"
126126
local download_url="${SDKMAN_CANDIDATES_API}/broker/download/${candidate}/${version}/${platform_parameter}"
@@ -228,5 +228,5 @@ function __sdkman_checksum_zip() {
228228
__sdkman_echo_no_colour "Not able to perform checksum verification at this time."
229229
fi
230230
fi
231-
done < ${headers_file}
231+
done < "${headers_file}"
232232
}

0 commit comments

Comments
 (0)