Also do not use $? there, as it appears to be limited to 0,1.
Showing the changes to build.bash (1 of 1 file). Show all
Unified · Split
| @@ -10,7 +10,7 @@ dgst='cksum "$@" | while read d _; do printf $d; done' · 9 unmodified lines | ||
| 10 | 10 | executable_p realpath || realpath() (cd "$1" &>/dev/null; pwd -P) |
| 11 | 11 | eval "digest() { $dgst; } 2>/dev/null" |
| 12 | 12 | die() { echo "$@" >&2; exit 111; } |
| 13 | −trap 'echo "$(test $? -eq 0 || echo "fail($?) ")$(($(now) - $S)) sec"' EXIT | |
| 13 | +trap 'test $? -eq 0 || printf "fail "; echo "$(($(now) - $S)) sec"' EXIT | |
| 14 | 14 | |
| 15 | 15 | darwin=false |
| 16 | 16 | wsid="wsi/x11" |