commit 27334df2dd0934c7a165263ae602c98f3081bbe5 parent 5dd8c5f6998780646dd71048e4cf45682d167d87 Author: Szymon Mikulicz <szymon.mikulicz@posteo.net> Date: Fri, 3 Jul 2026 04:04:23 +0200 Fix tac Diffstat:
| M | scripts/.local/bin/withenv | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/.local/bin/withenv b/scripts/.local/bin/withenv @@ -2,6 +2,8 @@ set -e ENVFILE="-" +TAC="tac" +which tac >/dev/null 2>&1 && TAC="tac" || TAC="tail -r" while :; do case $1 in @@ -20,8 +22,8 @@ subst() { | sha1sum \ | awk '{print "SHA1SUM=" $1}'; \ } 3>&1 \ - | tail -r \ - | xargs sh -c 'printf "%s\n" "${@}" | tail -r | env "$0" envsubst' -- + | $TAC \ + | xargs sh -c 'printf "%s\n" "${@}" | '$TAC' | env "$0" envsubst' -- } if [ "$IGNORE" = 1 ]; then