small code fixes

This commit is contained in:
Tobias Powalowski 2023-02-15 17:02:16 +01:00
parent 5e5cf53483
commit 37b45c4585

View file

@ -189,7 +189,9 @@ _gpg_check() {
while pgrep -x gpg &>/dev/null; do
sleep 1
done
[[ -e /etc/systemd/system/pacman-init.service ]] && systemctl stop pacman-init.service
if [[ -e /etc/systemd/system/pacman-init.service ]]; then
systemctl stop pacman-init.service
fi
}
_create_container() {
@ -385,9 +387,9 @@ _new_environment() {
fi
sleep 2
_clean_kernel_cache
rm ${_RAM}/{"${VMLINUZ}",${_INITRD}}
rm ${_RAM}/{${VMLINUZ},${_INITRD}}
umount ${_RAM} &>/dev/null
rm -r ramfs/ &>/dev/null
rm -r ${_RAM} &>/dev/null
#shellcheck disable=SC2115
rm -rf /usr/* &>/dev/null
while true; do