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
1 changed files with 5 additions and 1 deletions

View File

@ -427,7 +427,11 @@ while [ "${i}" -lt "${no_sources}" ]; do
#
incomplete="$(echo \
$(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}"))"
if [ "${incomplete}" ]; then