Merge pull request #676 from thriqon/675-line-dry-run

Handle missing files with __line (dry-run)
This commit is contained in:
Steven Armstrong 2018-06-20 15:29:55 +02:00 committed by GitHub
commit 2f20b31758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,11 @@ else
file="/$__object_id"
fi
if [ ! -f "$file" ]; then
echo "file_missing"
exit 0
fi
awk -v position="$position" -v needle="$needle" '
function _find(_text, _pattern) {
if (needle == "regex") {