Skip to content

Commit

Permalink
slightly less basic shellcheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Jan 30, 2024
1 parent a46eb00 commit f4a02f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ shortlog="
## [${version}] - $(date +'%Y-%m-%d')
$(git shortlog -e ${last_release}..HEAD)
$(git shortlog -e "${last_release}"..HEAD)
"
echo "${shortlog}"

Expand Down Expand Up @@ -95,11 +95,11 @@ outfile="${tempdir}/${tarprefix}.tar"
git archive "--output=${outfile}" "--prefix=${tarprefix}/" HEAD
# Append submodule archives
git submodule foreach --recursive "git archive --output ${tempdir}/${tarprefix}-sub-\${sha1}.tar --prefix=${tarprefix}/\${sm_path}/ HEAD"
if [[ $(ls ${tempdir}/${tarprefix}-sub*.tar | wc -l) != 0 ]]; then
if [[ $(ls "${tempdir}/${tarprefix}"-sub*.tar | wc -l) != 0 ]]; then
# combine all archives into one tar
tar --concatenate --file "${outfile}" "${tempdir}/${tarprefix}"-sub*.tar
fi
echo "Created tape archive '${outfile}' of size $(du -h ${outfile})."
echo "Created tape archive ${outfile} of size $(du -h "${outfile}")."

# 6. compress
echo "compressing:"
Expand Down

0 comments on commit f4a02f2

Please sign in to comment.