Files
ECC/scripts
L4XB e7c5ce3870 fix(hooks): read echo options only before the first operand, and join printf %s arguments
echo takes -n, -e and -E only before its first operand, so echo 'git commit -m x' -n prints git commit -m x -n and runs the bypass when it is piped into sh. The producer text removed the -n wherever it stood and lost the flag. printf '%s' reuses its format for every argument without a separator, so printf '%s' 'git pu' 'sh --no-verify' writes git push --no-verify, but the arguments were joined with newlines. Both passed on main as well.
2026-10-23 08:01:23 +02:00
..