From 6a93b10cf8cf5c80a724f71120d5f68c7cf29215 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 11:56:38 +0200 Subject: [PATCH] echo --- cd.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/cd.sh b/cd.sh index 833a7b9..a59aa80 100644 --- a/cd.sh +++ b/cd.sh @@ -548,19 +548,17 @@ local url for repository in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do cd_split url="${CD_PROJECTS_URL}/${repository}" - printf "\ + echo "\ ${url} -↓ -" +↓" git clone \ "${url}" "${root}/${repository}" \ || exit path="${root}/${repository}/${repository}" - printf "\ + echo "\ ${path} ↓ -${CD_PYTHON_PACKAGES} -" +${CD_PYTHON_PACKAGES}" cp --recursive \ "${path}" "${CD_PYTHON_PACKAGES}" \ || exit @@ -589,11 +587,10 @@ local path cd_step "Switch to Python" # path="$(realpath "${0}")" - printf "\ + echo "\ ${path} ↓ -${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD} -" +${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}" "${CD_PYTHON_ALIAS}" -m "${CD_GIT_CHILD}" "${@}" } @@ -709,11 +706,10 @@ cd_split () { cd_step () { CD_STEP=$((CD_STEP+1)) - printf "\ + echo "\ ${CD_DOWN} ${CD_VERT} ${CD_STEP} ${@} -${CD___UP} -" +${CD___UP}" } cd_write () { @@ -722,7 +718,7 @@ local text="${2}" if [ "${file}" ] ; then [ -f "${file}" ] && cd_cat "${file}" echo "→ ${1}" - printf "${text}" > "${file}" || exit + printf "%s" "${text}" > "${file}" || exit cd_cat "${file}" fi }