From d19a657dac1c6098df0445928d32217110800a25 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 28 Apr 2024 12:35:43 +0200 Subject: [PATCH] cd_cat --- cd.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cd.sh b/cd.sh index 2757fc5..15756bc 100644 --- a/cd.sh +++ b/cd.sh @@ -95,6 +95,7 @@ local text="" " done cd_write "${CD_DNS_FILE}" "${text}" + cd_cat "${CD_DNS_FILE}" } cd_set_packages_repositories () { @@ -246,6 +247,13 @@ cd_set_python_commands () { # +cd_cat () { + if [ -f "${1}" ] ; then + echo "$(realpath "${1}")" + cat "${1}" + fi +} + cd_install_package () { if [ "${1}" ] ; then case "${CD_OS_NAME}" in