diff --git a/ccollect.sh b/ccollect.sh index f940fef..7e16dd6 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -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