We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155a8da commit f463d6aCopy full SHA for f463d6a
1 file changed
aztec-up/bin/0.0.1/install
@@ -55,9 +55,21 @@ function echo_yellow {
55
}
56
57
function timeout {
58
- if [ "${CI:-0}" = "1" ] || [ "${CI:-0}" = "true" ]; then
+ if [ "${CI:-0}" != "1" ] && [ "${CI:-0}" != "true" ]; then
59
+ shift
60
+ "$@"
61
+ return
62
+ fi
63
+ if [ -x /usr/bin/timeout ]; then
64
+ # Prefer coreutils `timeout` when available. Absolute path avoids re-entering this function.
65
/usr/bin/timeout "$@"
66
+ elif perl -e1 2>/dev/null; then
67
+ # Fall back to perl's `alarm` when /usr/bin/timeout is missing.
68
+ local duration=$1
69
70
+ perl -e "alarm $duration; exec @ARGV" -- "$@"
71
else
72
+ # No timeout backend available -- run unguarded rather than fail the install.
73
shift
74
"$@"
75
fi
0 commit comments