From d80992da0091579c155e6b452255e1702aaa9883 Mon Sep 17 00:00:00 2001 From: "Jean (east-high-Nerd)" Date: Wed, 5 Nov 2025 14:36:12 -0500 Subject: [PATCH] Renamed options from short numbered format (i.e. '-1', '-2') to long descriptive format (i.e. '--mmdebstrap', '--sources') --- debian.sh | 6 +++--- elementary.sh | 8 ++++---- fedora.sh | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/debian.sh b/debian.sh index d5ffbc9..7dd9684 100755 --- a/debian.sh +++ b/debian.sh @@ -9,7 +9,7 @@ source \ "${BASEDIR}/system.conf" -if [[ "${1}" == '-1' ]]; then +if [[ "${1}" == '--mmdebstrap' ]]; then packages=(\ console-setup \ cryptsetup \ @@ -48,7 +48,7 @@ zstd\ ${include} \ "${VERSION_CODENAME}" \ /mnt -elif [[ "${1}" == '-2' ]]; then +elif [[ "${1}" == '--network-interfaces' ]]; then NETWORK_INTERFACE=($(ip -br addr show | sed 's| .*$||g' | grep -v '^lo' | grep -v 'tailscale' | grep -v '^wg')) shopt -s extglob @@ -58,7 +58,7 @@ allow-hotplug ${NETWORK_INTERFACE[$i]} iface ${NETWORK_INTERFACE[$i]} inet dhcp EOF done -elif [[ "${1}" == '-3' ]]; then +elif [[ "${1}" == '--sources' ]]; then cat << EOF | tee /mnt/etc/apt/sources.list.d/${VERSION_CODENAME}.sources &> /dev/null # ${VERSION_CODENAME^} Enabled: yes diff --git a/elementary.sh b/elementary.sh index 3a30da1..8039714 100755 --- a/elementary.sh +++ b/elementary.sh @@ -9,7 +9,7 @@ source \ "${BASEDIR}/system.conf" -if [[ "${1}" == '-1' ]]; then +if [[ "${1}" == '--mmdebstrap' ]]; then packages=(\ console-setup \ cryptsetup \ @@ -44,7 +44,7 @@ zstd\ ${include} \ "${UBUNTU_VERSION_CODENAME}" \ /mnt -elif [[ "${1}" == '-2' ]]; then +elif [[ "${1}" == '--sources' ]]; then cat </mnt/etc/apt/sources.list.d/${UBUNTU_VERSION_CODENAME}.sources # ${UBUNTU_VERSION_CODENAME^} Enabled: yes @@ -90,11 +90,11 @@ Signed-By: /etc/apt/trusted.gpg.d/patches.key.asc EOF rm /mnt/etc/apt/sources.list -elif [[ "${1}" == '-3' ]]; then +elif [[ "${1}" == '--skel' ]]; then rsync -pogAXtlHrDx \ /etc/skel \ /mnt/etc -elif [[ "${1}" == '-4' ]]; then +elif [[ "${1}" == '--elementary' ]]; then cp \ /etc/os-release \ /mnt/etc diff --git a/fedora.sh b/fedora.sh index a840953..87293e8 100755 --- a/fedora.sh +++ b/fedora.sh @@ -9,7 +9,7 @@ source \ "${BASEDIR}/system.conf" -if [[ "${1}" == '-1' ]]; then +if [[ "${1}" == '--rsync' ]]; then mkdir -p /run/install if [[ "${VERSION_ID}" -lt '41' ]]; then @@ -24,7 +24,7 @@ if [[ "${1}" == '-1' ]]; then --exclude=/etc/machine-id \ --info=progress2 \ /run/install/ /mnt -elif [[ "${1}" == '-2' ]]; then +elif [[ "${1}" == '--resolv-conf' ]]; then mv /mnt/etc/resolv.conf \ /mnt/etc/resolv.conf.orig