don't error in loops

This commit is contained in:
Tobias Powalowski 2023-02-05 20:30:08 +01:00
parent 5be3236e69
commit 4964f19f23
3 changed files with 19 additions and 11 deletions

View file

@ -109,8 +109,8 @@ _create_iso() {
_EFISTUB="usr/lib/systemd/boot/efi/linuxaa64.efi.stub"
_UCODE="${_AMD_UCODE}"
# replace aarch64 Image.gz with Image kernel for UKI, compressed image is not working at the moment
cp "${_W_DIR}"/boot/Image boot/Image-archboot-${_ARCH}
_KERNEL_ARCHBOOT=boot/Image-archboot-${_ARCH}
cp "${_W_DIR}/boot/Image" "boot/Image-archboot-${_ARCH}"
_KERNEL_ARCHBOOT="boot/Image-archboot-${_ARCH}"
fi
rm -r "${_W_DIR:?}"/boot
mv boot "${_W_DIR}"
@ -154,10 +154,14 @@ _create_iso() {
# create sha256sums
echo "Generating sha256sum..."
for i in *; do
[[ -f "${i}" ]] && cksum -a sha256 "${i}" >> sha256sum.txt
if [[ -f "${i}" ]]; then
cksum -a sha256 "${i}" >> sha256sum.txt
fi
done
for i in boot/*; do
[[ -f "${i}" ]] && cksum -a sha256 "${i}" >> sha256sum.txt
if [[ -f "${i}" ]]; then
cksum -a sha256 "${i}" >> sha256sum.txt
fi
done
}
# vim: set ft=sh ts=4 sw=4 et:

View file

@ -82,9 +82,13 @@ _create_archive() {
_sign_sha256sum() {
for i in $1; do
#shellcheck disable=SC2086
[[ -f "${i}" ]] && sudo -u "${_USER}" gpg ${_GPG} "${i}"
[[ -f "${i}" ]] && cksum -a sha256 "${i}" >> sha256sum.txt
[[ -f "${i}.sig" ]] && cksum -a sha256 "${i}.sig" >> sha256sum.txt
if [[ -f "${i}" ]]; then
sudo -u "${_USER}" gpg ${_GPG} "${i}"
cksum -a sha256 "${i}" >> sha256sum.txt
fi
if [[ -f "${i}.sig" ]]; then
cksum -a sha256 "${i}.sig" >> sha256sum.txt
fi
done
}

View file

@ -172,7 +172,7 @@
</head>
<body>
<h1>Archboot Homepage</h1>
<p>Last update 05.02.2023 16:44 (c) Tobias Powalowski </span><a href="https://archlinux.org/people/developers/#tpowa"><strong>tpowa</strong></a><span dir=""></p>
<p>Last update 05.02.2023 18:47 (c) Tobias Powalowski </span><a href="https://archlinux.org/people/developers/#tpowa"><strong>tpowa</strong></a><span dir=""></p>
<p><span dir=""><a href=""><img src="https://pkgbuild.com/~tpowa/archboot/web/logo.png" alt="Logo" /></a> </span></p>
<p><span dir=""><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=Z7GXKW4MKHK7C"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="Donate" /></a> You like the project? I like coffee :-)</span></p>
<nav id="TOC" role="doc-toc">
@ -334,7 +334,7 @@
<td>No</td>
<td>337MB</td>
<td>468MB</td>
<td>475MB</td>
<td>451MB</td>
</tr>
<tr class="even">
<td><strong><em>date</em>-latest</strong></td>
@ -344,7 +344,7 @@
<td>Yes</td>
<td>101MB</td>
<td></td>
<td>139MB</td>
<td>116MB</td>
</tr>
<tr class="odd">
<td><strong><em>date</em>-local</strong></td>
@ -354,7 +354,7 @@
<td>Yes</td>
<td>495MB</td>
<td></td>
<td>722MB</td>
<td>699MB</td>
</tr>
</tbody>
</table>