Merge branch 'jk/maint-push-config'
[gitweb.git] / t / test-lib.sh
index a5b8d03db0fc88c42e38cdde13a6cd2b14c06581..f2ca5364722e9c85a23bdfdcf1e24122fd5e3a0f 100644 (file)
@@ -685,6 +685,21 @@ do
        esac
 done
 
+# Provide an implementation of the 'yes' utility
+yes () {
+       if test $# = 0
+       then
+               y=y
+       else
+               y="$*"
+       fi
+
+       while echo "$y"
+       do
+               :
+       done
+}
+
 # Fix some commands on Windows
 case $(uname -s) in
 *MINGW*)