scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 9c905a91af8b4c7e058f063d4ef2254eeead49e1
parent 4a737a0c46944b9b80a013cc2a79a71f66929a25
Author: Eddie Thieda <eddie.thieda@gmail.com>
Date:   Thu, 26 Jul 2018 08:10:58 -0400

2f30-clone-all: Check for curl and git installation

Diffstat:
2f30-clone-all | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/2f30-clone-all b/2f30-clone-all @@ -1,5 +1,15 @@ #!/bin/sh +command -v curl >/dev/null || { + echo curl is not installed 1>&2 + exit 1 +} + +command -v git >/dev/null || { + echo git is not installed 1>&2 + exit 1 +} + curl -s https://git.2f30.org | grep -E 'href="[^/]+/log.html"' | sed -E 's,.*href="([^/]+)/log.html".*,\1,' | while read line; do [ ! -d $line ] && git clone git://git.2f30.org/$line done