X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=all;h=338967a7e998281f6e47c88f6823ba278dbb8b69;hp=e750d9ae491067e7956b23ae63c06a613a5b58cd;hb=ca76086bfdfc713ecded00f8e4c7fa6d0cdc49a2;hpb=8734a8fe7d9c610b69e69f529d704aa1db5729a5 diff --git a/all b/all index e750d9ae..338967a7 100755 --- a/all +++ b/all @@ -339,16 +339,11 @@ mkzip0() zip -0y "$@" } -timewrapper() -{ - time -p "$@" -} - mirrorspeed() { # first result is to be ignored, but we use it to check status git ls-remote "$1" refs/heads/master >/dev/null 2>&1 || return 1 - timewrapper git ls-remote "$1" refs/heads/master 2>&1 >/dev/null | head -n 1 | cut -d ' ' -f 2 | tr -d . | sed 's,^0*,,' + { time -p git ls-remote "$1" refs/heads/master; } 2>&1 >/dev/null | head -n 1 | cut -d ' ' -f 2 | tr -d . | sed 's,^0*,,' # unit: clock ticks (depends on what "time" returns }