mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 16:32:25 +01:00
zgrep.sh: Add forgotten ';' and remove set -e which prevents looping over files
not matching
This commit is contained in:
parent
1e5b97628b
commit
6a88262d6a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333013
@ -24,7 +24,7 @@
|
|||||||
#
|
#
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
set -eu
|
set -u
|
||||||
grep=grep
|
grep=grep
|
||||||
zcat=zstdcat
|
zcat=zstdcat
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ else
|
|||||||
if [ ${silent} -lt 1 -a $# -gt 1 ]; then
|
if [ ${silent} -lt 1 -a $# -gt 1 ]; then
|
||||||
grep_args="-H ${grep_args}"
|
grep_args="-H ${grep_args}"
|
||||||
fi
|
fi
|
||||||
for file do
|
for file; do
|
||||||
${cattool} ${catargs} -- "${file}" | ${grep} --label="${file}" ${grep_args} -- "${pattern}" -
|
${cattool} ${catargs} -- "${file}" | ${grep} --label="${file}" ${grep_args} -- "${pattern}" -
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user