mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
shellcheck fixes, fix chroot tarball
This commit is contained in:
parent
2b1eadffaa
commit
3cc6e5a40e
2 changed files with 4 additions and 3 deletions
|
@ -315,7 +315,7 @@ _pacman_keyring() {
|
|||
done
|
||||
# gpg finished in background
|
||||
while pgrep -x gpg &>"${_NO_LOG}"; do
|
||||
read .r -t 1
|
||||
read -r -t 1
|
||||
done
|
||||
if [[ -e /etc/systemd/system/pacman-init.service ]]; then
|
||||
systemctl stop pacman-init.service
|
||||
|
|
|
@ -65,9 +65,10 @@ rm -r "${1}"
|
|||
echo "Finished container tarball."
|
||||
echo "Signing tarball..."
|
||||
#shellcheck disable=SC2086
|
||||
sudo -u "${_USER}" gpg ${_GPG} ${_PACMAN_ARCH_CHROOT} || exit 1
|
||||
run0 "${_USER}" gpg ${_GPG} ${_PACMAN_ARCH_CHROOT} || exit 1
|
||||
chown "${_USER}":"${_GROUP}" "${_PACMAN_ARCH_CHROOT}"{,.sig} || exit 1
|
||||
echo "Syncing tarball to ${_SERVER}:${_PUB}/.${_SERVER_PACMAN_ARCH}..."
|
||||
sudo -u "${_USER}" "${_RSYNC}" "${_PACMAN_ARCH_CHROOT}"{,.sig} "${_SERVER}:${_PUB}/.${_SERVER_PACMAN_ARCH}" || exit 1
|
||||
#shellcheck disable=SC2086
|
||||
run0 "${_USER}" ${_RSYNC} "${_PACMAN_ARCH_CHROOT}"{,.sig} "${_SERVER}:${_PUB}/.${_SERVER_PACMAN_ARCH}" || exit 1
|
||||
echo "Finished."
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
|
|
Loading…
Reference in a new issue