diff --git a/lib/lib_ciss_upgrades_boot.sh b/lib/lib_ciss_upgrades_boot.sh index f5c7f9a..1c7c022 100644 --- a/lib/lib_ciss_upgrades_boot.sh +++ b/lib/lib_ciss_upgrades_boot.sh @@ -29,7 +29,13 @@ ciss_upgrades_boot() { printf "\e[95m++++ ++++ ++++ ++++ ++++ ++++ ++ 🧪 %s starting ... \e[0m\n" "${BASH_SOURCE[0]}" ### Updates '/usr/lib/live/boot/0030-verify-checksums'. - install -D -m 0755 -o root -g root "${VAR_WORKDIR}/scripts/live-boot/0030-verify-checksums" "${VAR_HANDLER_BUILD_DIR}/config/includes.chroot/usr/lib/live/boot/0030-verify-checksums" + if [[ ! -f "${VAR_HANDLER_BUILD_DIR}/config/includes.chroot/usr/lib/live/boot/0030-verify-checksums" ]]; then + + install -d -m 0755 -o root -g root "${VAR_HANDLER_BUILD_DIR}/config/includes.chroot/usr/lib/live/boot" + + install -m 0755 -o root -g root "${VAR_WORKDIR}/scripts/usr/lib/live/boot/0030-verify-checksums" "${VAR_HANDLER_BUILD_DIR}/config/includes.chroot/usr/lib/live/boot/0030-verify-checksums" + + fi declare var_sha="${VAR_HANDLER_BUILD_DIR}/config/includes.binary/0030-verify-checksums.sha512" declare var_sig="${VAR_HANDLER_BUILD_DIR}/config/includes.binary/0030-verify-checksums.sha512.sig" diff --git a/lib/lib_gnupg.sh b/lib/lib_gnupg.sh index 18d5532..21ada61 100644 --- a/lib/lib_gnupg.sh +++ b/lib/lib_gnupg.sh @@ -56,7 +56,7 @@ allow-loopback-pinentry pinentry-program /usr/bin/pinentry-tty EOF - if ! gpgconf --launch gpg-agent >| /tmp/cdlb_gpg-agent.log 2>&1; then + if ! gpgconf --launch gpg-agent 2>&1; then printf "\e[91m++++ ++++ ++++ ++++ ++++ ++++ ++ Failed to launch gpg-agent. \e[0m\n" return "${ERR_GPG__AGENT}"