Improve code

Signed-off-by: Stefano Capitani <stefano@manjaro.org>
This commit is contained in:
Stefano Capitani 2021-05-21 18:57:37 +02:00
parent 7ef53f1daf
commit 4bdb473250

View file

@ -199,8 +199,7 @@ make_iso() {
touch "${iso_root}/.miso" touch "${iso_root}/.miso"
for sfs_dir in $(find "${work_dir}" -maxdepth 1 -type d); do for sfs_dir in $(find "${work_dir}" -maxdepth 1 -type d); do
if [[ "${sfs_dir}" != "${work_dir}" ]]; then if [[ "${sfs_dir}" != "${work_dir}" ]]; then
root_fs=$(echo "${sfs_dir}" | rev | cut -d'/' -f 1 | rev) if [[ "$(basename "${sfs_dir}")" == "rootfs" ]]; then
if [[ "${root_fs}" == "rootfs" ]]; then
rm -rf "${sfs_dir}"/etc/pacman.d/gnupg rm -rf "${sfs_dir}"/etc/pacman.d/gnupg
fi fi
make_sfs "${sfs_dir}" make_sfs "${sfs_dir}"