History

Simplify exit trap

Also do not use $? there, as it appears to be limited to 0,1.

malc committed 5 years ago

Commit a19a9c11 parent 6c6e2c61 file · +1 −1Browse files

Showing the changes to build.bash (1 of 1 file). Show all

Unified · Split

build.bash+1−1
@@ -10,7 +10,7 @@ dgst='cksum "$@" | while read d _; do printf $d; done' · 9 unmodified lines
10executable_p realpath || realpath() (cd "$1" &>/dev/null; pwd -P)10executable_p realpath || realpath() (cd "$1" &>/dev/null; pwd -P)
11eval "digest() { $dgst; } 2>/dev/null"11eval "digest() { $dgst; } 2>/dev/null"
12die() { echo "$@" >&2; exit 111; }12die() { echo "$@" >&2; exit 111; }
13trap 'echo "$(test $? -eq 0 || echo "fail($?) ")$(($(now) - $S)) sec"' EXIT13trap 'test $? -eq 0 || printf "fail "; echo "$(($(now) - $S)) sec"' EXIT
14 14
15darwin=false15darwin=false
16wsid="wsi/x11"16wsid="wsi/x11"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t