diff --git a/cd.sh b/cd.sh index 3c4a369..7c8fb21 100644 --- a/cd.sh +++ b/cd.sh @@ -174,6 +174,7 @@ local text="" text="${text}nameserver ${server} " done + cd_cat "${CD_DNS_FILE}" cd_write "${CD_DNS_FILE}" "${text}" } @@ -405,7 +406,7 @@ local file="${1}" cd_rm () { if [ -e "${1}" ] ; then - echo "← $(realpath "${1}")" + echo "← ${1}" rm --recursive "${1}" || exit fi } @@ -443,6 +444,7 @@ cd_write () { local file="${1}" local text="${2}" if [ "${file}" ] ; then + echo "→ ${1}" echo -n "${text}" > "${file}" || exit cd_cat "${file}" fi