Changed unneeded 'elif' statements to simple individual 'if' statements

This commit is contained in:
2026-01-01 12:40:03 -05:00
parent 8d3c013539
commit 8b892d207d
4 changed files with 81 additions and 27 deletions

View File

@@ -45,7 +45,9 @@ zstd\
${include} \
"${UBUNTU_VERSION_CODENAME}" \
/mnt
elif [[ "${1}" == '--sources' ]]; then
fi
if [[ "${1}" == '--sources' ]]; then
cat <<EOF >/mnt/etc/apt/sources.list.d/${UBUNTU_VERSION_CODENAME}.sources
# ${UBUNTU_VERSION_CODENAME^}
Enabled: yes
@@ -91,11 +93,15 @@ Signed-By: /etc/apt/trusted.gpg.d/patches.key.asc
EOF
rm /mnt/etc/apt/sources.list
elif [[ "${1}" == '--skel' ]]; then
fi
if [[ "${1}" == '--skel' ]]; then
rsync -pogAXtlHrDx \
/etc/skel \
/mnt/etc
elif [[ "${1}" == '--elementary' ]]; then
fi
if [[ "${1}" == '--elementary' ]]; then
cp \
/etc/os-release \
/mnt/etc
@@ -103,7 +109,9 @@ elif [[ "${1}" == '--elementary' ]]; then
cp \
/etc/apt/trusted.gpg.d/{elementary,patches}.key.asc \
/mnt/etc/apt/trusted.gpg.d/
elif [[ "${1}" == '--network' ]]; then
fi
if [[ "${1}" == '--network' ]]; then
mkdir \
-p \
/mnt/run/systemd/resolve/
@@ -115,7 +123,9 @@ elif [[ "${1}" == '--network' ]]; then
touch \
/mnt/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
elif [[ "${1}" == '--apps' ]]; then
fi
if [[ "${1}" == '--apps' ]]; then
app=(\
io.elementary.calculator \
io.elementary.camera \
@@ -141,19 +151,25 @@ org.gnome.font-viewer\
appcenter \
-y \
${apps}
elif [[ "${1}" == '--purge' ]]; then
fi
if [[ "${1}" == '--purge' ]]; then
apt \
purge \
--yes \
--autoremove \
gnome-software \
snapd
elif [[ "${1}" == '--desktop' ]]; then
fi
if [[ "${1}" == '--desktop' ]]; then
apt \
install \
--yes \
elementary-desktop
elif [[ "${1}" == '--namarupa' ]]; then
fi
if [[ "${1}" == '--namarupa' ]]; then
curl \
--progress \
--location \