mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-12 10:02:49 -04:00
21 lines
548 B
Bash
Executable file
21 lines
548 B
Bash
Executable file
#!/bin/bash
|
|
|
|
## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
set -x
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if ! printf '%s\n' "" | wc -l >/dev/null ; then
|
|
printf '%s\n' "\
|
|
$0: ERROR: command 'wc' test failed! Do not ignore this!
|
|
|
|
'wc' can core dump. Example:
|
|
zsh: illegal hardware instruction (core dumped) wc -l
|
|
https://github.com/rspamd/rspamd/issues/5137" >&2
|
|
exit 1
|
|
fi
|
|
|
|
wc -L "/var/lib/apt/lists/"*InRelease
|
|
wc -L "/var/lib/apt/lists/"*InRelease | awk '$1 > 1024 {print; exit 1}'
|