mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-15 06:59:14 -04:00
fix
This commit is contained in:
parent
bd01a68305
commit
e1bae1c68a
2 changed files with 4 additions and 4 deletions
|
@ -7,8 +7,8 @@ set -x
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if ! printf '%s\n' | wc -l >/dev/null ; then
|
if ! printf '%s\n' "" | wc -l >/dev/null ; then
|
||||||
printf "\
|
printf '%s\n' "\
|
||||||
$0: ERROR: command 'wc' test failed! Do not ignore this!
|
$0: ERROR: command 'wc' test failed! Do not ignore this!
|
||||||
|
|
||||||
'wc' can core dump. Example:
|
'wc' can core dump. Example:
|
||||||
|
|
|
@ -35,8 +35,8 @@ ERROR: Please report this bug." >&2
|
||||||
|
|
||||||
trap error_handler ERR
|
trap error_handler ERR
|
||||||
|
|
||||||
if ! printf '%s\n' | wc -l >/dev/null ; then
|
if ! printf '%s\n' "" | wc -l >/dev/null ; then
|
||||||
printf "\
|
printf '%s\n' "\
|
||||||
$0: ERROR: command 'wc' test failed! Do not ignore this!
|
$0: ERROR: command 'wc' test failed! Do not ignore this!
|
||||||
|
|
||||||
'wc' can core dump. Example:
|
'wc' can core dump. Example:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue