File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ _setup_jdk8() {
2626 --header ' X-GitHub-Api-Version: 2022-11-28' \
2727 https://api.github.com/repos/adoptium/temurin8-binaries/releases/latest \
2828 | jq .tag_name)
29- jdk_name=OpenJDK8U-jdk_x64_linux_hotspot_$( echo " ${jdk_tag// jdk/ } " | tr -d ' - ' ) .tar.gz
29+ jdk_name=OpenJDK8U-jdk_x64_linux_hotspot_$( tr -d ' - ' <<< " ${jdk_tag//jdk/}" ) .tar.gz
3030 mkdir --parents " ${jdk_dir} "
3131 curl_cmd --remote-name https://github.com/adoptium/temurin8-binaries/releases/download/" ${jdk_tag} " /" ${jdk_name} " --output-dir " ${jdk_dir} "
3232 curl_cmd https://github.com/adoptium/temurin8-binaries/releases/download/" ${jdk_tag} " /" ${jdk_name} " .sha256.txt | sed " s|${jdk_name} |${jdk_dir} /${jdk_name} |g" | sha256sum --check
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ _merge_local_manifests() {
5252# Clone a repo
5353_clone () {
5454 full_repo_name=" ${1} "
55- repo_name=$( echo " ${full_repo_name} " | rev | cut -d' /' -f3- | rev)
56- branch=$( echo " ${full_repo_name} " | rev | cut -d' /' -f-1 | rev)
57- target_path=$( echo " ${full_repo_name} " | rev | cut -d' /' -f3 | rev | sed ' s/android_//g; s/proprietary_//g; s|_|/|g' )
55+ repo_name=$( rev <<< " ${full_repo_name}" | cut -d' /' -f3- | rev)
56+ branch=$( rev <<< " ${full_repo_name}" | cut -d' /' -f-1 | rev)
57+ target_path=$( rev <<< " ${full_repo_name}" | cut -d' /' -f3 | rev | sed ' s/android_//g; s/proprietary_//g; s|_|/|g' )
5858 rm -rf " ${target_path} " || true
5959 git clone " ${repo_name} " -b " ${branch} " " ${target_path} "
6060}
You can’t perform that action at this time.
0 commit comments