1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 19:40:07 +00:00

fix(shell): suppress SC2016 in timeout perl fallback

This commit is contained in:
tw93
2026-03-06 14:15:52 +08:00
parent 92ad46a396
commit 0fabc6feec

View File

@@ -113,6 +113,7 @@ run_with_timeout() {
if [[ "${MO_DEBUG:-0}" == "1" ]]; then if [[ "${MO_DEBUG:-0}" == "1" ]]; then
echo "[TIMEOUT] Perl fallback, ${duration}s: $*" >&2 echo "[TIMEOUT] Perl fallback, ${duration}s: $*" >&2
fi fi
# shellcheck disable=SC2016 # Embedded Perl uses Perl variables inside single quotes.
"$MO_TIMEOUT_PERL_BIN" -e ' "$MO_TIMEOUT_PERL_BIN" -e '
use strict; use strict;
use warnings; use warnings;