Verified Commit 6ea66480 authored by DevOps's avatar DevOps

Use cat to save code

parent 656cf6ba
......@@ -79,7 +79,7 @@ main() {
if [[ ! -z ${remote_ver} ]] && [[ ${local_ver} != ${remote_ver} ]]; then
make_home
echo '// HEADER' >${CODE_PATH}
echo -n ${code} >>${CODE_PATH}
cat <<<${code} >>${CODE_PATH}
echo -n ${remote_ver} >${STATE_PATH}/version.txt
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment