From fe520e078cb3717af22c6872563f267341051a0e Mon Sep 17 00:00:00 2001 From: malc Date: Thu, 12 Apr 2018 10:03:45 +0300 Subject: [PATCH] Pipe starts a subshell Back to the drawing board... --- build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 31a6582..a0460f9 100755 --- a/build.sh +++ b/build.sh @@ -19,11 +19,7 @@ fi tstart=$(now) alias vecho=${vecho-:} command -v md5sum >/dev/null || true && alias sum=md5sum -digest() { - ah= - sum "$@" 2>/dev/null | while read h _; do ah="$ah$h"; done - printf "$ah" -} +digest() { sum "$@" | while read h _; do printf "$h"; done; } partmsg() { test $? -eq 0 && msg="ok" || msg="ko" -- 2.11.4.GIT