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:
parent
08331387b7
commit
ce6157efee
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue