Commit c7f262dd authored by moritz's avatar moritz

Move the verbose error check where it belongs.


git-svn-id: https://svn.xiph.org/trunk/ezstream@16534 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 41b1dd7c
......@@ -117,16 +117,16 @@ trap 'rm -rf ${_temp_dir}; exit 1' 2 15
_cfg="${_temp_dir}/config.xml"
_playlist="${_temp_dir}/playlist.txt"
touch "${_cfg}"
if [ $? -ne 0 ]; then
echo "${_myname}: Unable to create configuration." >&2
exit 1
fi
chmod 0600 "${_cfg}"
touch "${_cfg}" || exit 1
chmod 0600 "${_cfg}" || exit 1
sed -e "s,${_filename_placeholder},${_playlist},g" \
< "${_cfg_template}" \
> "${_cfg}"
if [ $? -ne 0 ]; then
echo "${_myname}: Unable to create configuration." >&2
exit 1
fi
if [ -n "$1" ]; then
for _file in $*
......
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