fix gh issue #113
[awesomized/libmemcached] / scripts / download_catch2.sh
diff --git a/scripts/download_catch2.sh b/scripts/download_catch2.sh
new file mode 100755 (executable)
index 0000000..2438398
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+curl -sSLO $(curl -sSI https://github.com/catchorg/Catch2/releases/latest | sed -ne '\,^[Ll]ocation: *, !d
+s,[Ll]ocation: *\(.*\)/tag/,\1/download/,
+s,.$,/catch.hpp,
+p')