mirror of
https://github.com/ben-grande/qusal.git
synced 2025-05-07 16:55:05 -04:00
fix: avoid operand evaluation as argument
Explicit end option parsing as the shell can be quite dangerous without it.
This commit is contained in:
parent
e42950376a
commit
1b2f1ba941
52 changed files with 196 additions and 189 deletions
|
@ -12,7 +12,7 @@ test -d "${repo_toplevel}" || exit 1
|
|||
cd "${repo_toplevel}"
|
||||
unset repo_toplevel
|
||||
|
||||
now="$(date +%s)"
|
||||
now="$(date -- +%s)"
|
||||
fail="0"
|
||||
find_tool="$(./scripts/best-program.sh fd fdfind find)"
|
||||
|
||||
|
@ -46,7 +46,7 @@ fi
|
|||
for key in ${files}; do
|
||||
data="$(gpg --no-keyring --no-auto-check-trustdb --no-autostart \
|
||||
--with-colons --show-keys "${key}")"
|
||||
nr="$(echo "${data}" | grep -Ec '^(p|s)ub:')"
|
||||
nr="$(echo "${data}" | grep -Ec -e '^(p|s)ub:')"
|
||||
## Threshold in days.
|
||||
threshold="${PGP_LINT_THRESHOLD:-30}"
|
||||
tty_stderr=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue