generate_source_tarball.sh: Double-quote DEPTH reference (SC2086)
- generate_source_tarball.sh: Avoid empty DEPTH reference while still appeasing shellcheck - Related: RHEL-52734
This commit is contained in:
parent
6b2f51cfae
commit
f9f33b7b3d
@ -2516,6 +2516,8 @@ cjc.mainProgram(args)
|
|||||||
- openjdk_news.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
|
- openjdk_news.sh: shellcheck: Remove x-prefixes since we use Bash (SC2268)
|
||||||
- openjdk_news.sh: shellcheck: Remove deprecated egrep usage (SC2196)
|
- openjdk_news.sh: shellcheck: Remove deprecated egrep usage (SC2196)
|
||||||
- generate_source_tarball.sh: Output values of new options WITH_TEMP and OPENJDK_LATEST
|
- generate_source_tarball.sh: Output values of new options WITH_TEMP and OPENJDK_LATEST
|
||||||
|
- generate_source_tarball.sh: Double-quote DEPTH reference (SC2086)
|
||||||
|
- generate_source_tarball.sh: Avoid empty DEPTH reference while still appeasing shellcheck
|
||||||
- Related: RHEL-52734
|
- Related: RHEL-52734
|
||||||
|
|
||||||
* Sun Aug 04 2024 Thomas Fitzsimmons <fitzsim@redhat.com> - 1:17.0.12.0.6-0.1.ea
|
* Sun Aug 04 2024 Thomas Fitzsimmons <fitzsim@redhat.com> - 1:17.0.12.0.6-0.1.ea
|
||||||
|
@ -221,11 +221,12 @@ else
|
|||||||
echo "Cloning ${VERSION} root repository from ${REPO_ROOT}"
|
echo "Cloning ${VERSION} root repository from ${REPO_ROOT}"
|
||||||
if realpath -q "${REPO_ROOT}"; then
|
if realpath -q "${REPO_ROOT}"; then
|
||||||
echo "Local path detected; not adding depth argument";
|
echo "Local path detected; not adding depth argument";
|
||||||
|
DEPTH="--";
|
||||||
else
|
else
|
||||||
DEPTH="--depth=1";
|
DEPTH="--depth=1";
|
||||||
echo "Remote repository detected; adding ${DEPTH}";
|
echo "Remote repository detected; adding ${DEPTH}";
|
||||||
fi
|
fi
|
||||||
git clone ${DEPTH} -b "${VERSION}" "${REPO_ROOT}" "${VERSION}"
|
git clone -b "${VERSION}" "${DEPTH}" "${REPO_ROOT}" "${VERSION}"
|
||||||
pushd "${VERSION}"
|
pushd "${VERSION}"
|
||||||
TAR_TIME="$(git log --max-count 1 --format=%cI)"
|
TAR_TIME="$(git log --max-count 1 --format=%cI)"
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user