diff --git a/cd.sh b/cd.sh index 2ca6f20..eddae10 100644 --- a/cd.sh +++ b/cd.sh @@ -68,6 +68,7 @@ cd_set_environment_variables () { "${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}") CD_OS_VERSION="$(cd_grep_os VERSION_CODENAME)" ;; + *) esac # check operating system version case "${CD_OS_ID}" in @@ -107,6 +108,7 @@ cd_set_environment_variables () { *) cd_error_os "CD_OS_VERSION" ;; esac ;; + *) esac cd_split cd_echo "CD_OS_ID" "CD_OS_VERSION" @@ -137,6 +139,7 @@ cd_set_environment_variables () { CD_CA_ROOT="/usr/local/share/ca-certificates" CD_CMD_CA="update-ca-certificates" ;; + *) esac cd_split cd_echo "CD_CA_ROOT" "CD_CMD_CA" @@ -154,6 +157,7 @@ cd_set_environment_variables () { "${CD_OS_ARCH}") CD_PM="${CD_PM_PACMAN}" ;; + *) esac cd_split cd_echo "CD_PM" @@ -227,6 +231,7 @@ Dir::Etc::SourceParts \"\"; Acquire::https::Verify-Peer False; " ;; + *) esac cd_split cd_echo "CD_PM_CLEAN" \ @@ -256,6 +261,7 @@ Acquire::https::Verify-Peer False; "${CD_OS_UBUNTU}") CD_URL_DEFAULT="http://archive.ubuntu.com/ubuntu" ;; + *) esac CD_URL_CHOSEN="${CD_URL_DEFAULT}" case "${CD_OS_ID}" in @@ -284,6 +290,7 @@ Acquire::https::Verify-Peer False; [ -n "${CD_URL_UBUNTU}" ] && CD_URL_CHOSEN="${CD_URL_UBUNTU}" \ || CD_URL_CHOSEN="https://ubuntu.mirrors.ovh.net/ubuntu" ;; + *) esac cd_split cd_echo "CD_URL_DEFAULT" "CD_URL_CHOSEN" @@ -305,6 +312,7 @@ Acquire::https::Verify-Peer False; case "${CD_OS_VERSION}" in "bookworm") CD_PYTHON_COMMAND="python3.11" ;; "bullseye") CD_PYTHON_COMMAND="python3.9" ;; + *) esac CD_PYTHON_PACKAGE="python3" ;; @@ -316,9 +324,11 @@ Acquire::https::Verify-Peer False; case "${CD_OS_VERSION}" in "noble") CD_PYTHON_COMMAND="python3.12" ;; "jammy") CD_PYTHON_COMMAND="python3.10" ;; + *) esac CD_PYTHON_PACKAGE="python3" ;; + *) esac # set python packages case "${CD_OS_ID}" in @@ -331,6 +341,7 @@ Acquire::https::Verify-Peer False; "${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}") CD_PYTHON_PACKAGES="/usr/lib/${CD_PYTHON_ALIAS}/dist-packages" ;; + *) esac cd_split cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES"