Skip to content

Commit c2fae13

Browse files
committed
chore: drop useless echo usage
1 parent 3a40656 commit c2fae13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/compat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/sync.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)