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 text="${2}"
|
||||
if [ "${file}" ] ; then
|
||||
echo -n "${text}" \
|
||||
> "${file}" \
|
||||
|| exit
|
||||
echo -n "${text}" > "${file}" || exit
|
||||
cd_cat "${file}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue