echo-e"\n############################################################\n### end $ci\n############################################################">>"$NGINX_CONFIG_COPY.$DATE_EXT"
PREVIOUS_CI_LINE="$CI_LINE"
done
#echo "pre-cat waiting..."
#read
cat$NGINX_CONFIG_COPY.*>"$NGINX_CONFIG_COPY"
rm$NGINX_CONFIG_COPY.*
#echo "post-rm waiting..."
#read
done
IFS="$OLDIFS"
# get back to the original directory we've been running from
cd"$ORIG_CWD"
# check how we need to output the thing
if["$2"!=""];then
echo"+-- moving the temporary output file to the output destination"
echo" src: $NGINX_CONFIG_COPY"
echo" dst: $2"
mv"$NGINX_CONFIG_COPY""$(basename$2)"
echo"+-- cleaning up the temporary output directory"