cd_write
This commit is contained in:
parent
e891d90b43
commit
efac9b8463
1 changed files with 1 additions and 3 deletions
4
cd.sh
4
cd.sh
|
@ -380,9 +380,7 @@ cd_write () {
|
||||||
local file="${1}"
|
local file="${1}"
|
||||||
local text="${2}"
|
local text="${2}"
|
||||||
if [ "${file}" ] ; then
|
if [ "${file}" ] ; then
|
||||||
echo -n "${text}" \
|
echo -n "${text}" > "${file}" || exit
|
||||||
> "${file}" \
|
|
||||||
|| exit
|
|
||||||
cd_cat "${file}"
|
cd_cat "${file}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue