begin to cleanup ugly awk line

Using ENVIRON[] instead of ugly quoting

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-10-25 20:13:50 +01:00
parent 08331387b7
commit ce6157efee

View file

@ -427,7 +427,11 @@ while [ "${i}" -lt "${no_sources}" ]; do
# #
incomplete="$(echo \ incomplete="$(echo \
$(pcmd ls -1 "${ddir}/" | \ $(pcmd ls -1 "${ddir}/" | \
awk "/\.${CMARKER}\$/ { print \$0; gsub(\"\.${CMARKER}\$\",\"\",\$0); print \$0 }" | \ awk '/\.ENVIRON["CMARKER"]$/ {
print $0;
gsub("\." ENVIRON["CMARKER"]$","",$0);
print $0
}' | \
tee "${TMP}"))" tee "${TMP}"))"
if [ "${incomplete}" ]; then if [ "${incomplete}" ]; then