mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-10 15:38:54 +00:00
Stop relying on exit status from invocation of "time".
Instead, check if its output starts with "user ".
This commit is contained in:
parent
cc3b56f8b5
commit
521c084061
@ -36,6 +36,6 @@ allmirrors()
|
||||
}
|
||||
|
||||
time=
|
||||
if { time -p sh -c 'true'; } >/dev/null 2>&1; then
|
||||
if { time -p sh -c 'true'; } 2>&1 >/dev/null | grep '^user ' >/dev/null; then
|
||||
time="time -p"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user