echo
This commit is contained in:
parent
1a6241033f
commit
6a93b10cf8
1 changed files with 9 additions and 13 deletions
22
cd.sh
22
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue