This commit is contained in:
Marc Beninca 2024-06-08 16:10:45 +02:00
parent a8be6fdf64
commit 17d22283f8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -597,10 +597,11 @@ ${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}"
# functions
cd_cat () {
if [ -f "${1}" ] ; then
cd_open "${1}"
cat "${1}" || exit
cd_shut "${1}"
cd_cat__file="${1}"
if [ "${cd_cat__file}" ] ; then
cd_open "${cd_cat__file}"
cat "${cd_cat__file}" || exit
cd_shut "${cd_cat__file}"
fi
}