echo -n → printf

This commit is contained in:
Marc Beninca 2024-06-07 15:45:18 +02:00
parent 013d3bb8f3
commit 1a6241033f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
cd.sh
View file

@ -548,7 +548,7 @@ local url
for repository in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do
cd_split
url="${CD_PROJECTS_URL}/${repository}"
echo -n "\
printf "\
${url}
"
@ -556,7 +556,7 @@ ${url}
"${url}" "${root}/${repository}" \
|| exit
path="${root}/${repository}/${repository}"
echo -n "\
printf "\
${path}
${CD_PYTHON_PACKAGES}
@ -589,7 +589,7 @@ local path
cd_step "Switch to Python"
#
path="$(realpath "${0}")"
echo -n "\
printf "\
${path}
${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}
@ -623,7 +623,7 @@ cd_error_ci () {
cd_error_os () {
local variable="${1}"
echo -n "× OS: "
printf "× OS: "
cd_echo "${variable}"
exit ${CD_ERROR_OS}
}
@ -709,7 +709,7 @@ cd_split () {
cd_step () {
CD_STEP=$((CD_STEP+1))
echo -n "\
printf "\
${CD_DOWN}
${CD_VERT} ${CD_STEP} ${@}
${CD___UP}
@ -722,7 +722,7 @@ local text="${2}"
if [ "${file}" ] ; then
[ -f "${file}" ] && cd_cat "${file}"
echo "${1}"
echo -n "${text}" > "${file}" || exit
printf "${text}" > "${file}" || exit
cd_cat "${file}"
fi
}