"$@" http nl http://nl.git.xonotic.org/xonotic/ '*2'
"$@" ssh push ssh://xonotic@push.git.xonotic.org/ ''
+
+ "$@" http lab https://gitlab.com/xonotic/ ''
+ "$@" ssh lab ssh://git@gitlab.com/xonotic/ ''
}
-time=
-if { time -p sh -c 'true'; } 2>&1 >/dev/null | grep '^user ' >/dev/null; then
- time="time -p"
+have_time=true
+measure_time()
+{
+ if $have_time; then
+ time -p "$@"
+ else
+ "$@"
+ fi
+}
+if { measure_time sh -c 'true'; } 2>&1 >/dev/null | grep '^user ' >/dev/null; then
+ msg "Timing via the time utility works."
+else
+ have_time=false
+ msg "Timing not supported."
fi