shithub: rc

Download patch

ref: a485d8366ca7a9ee643a88537148064061a1dc10
parent: b4df13675cc9d44155d2ce7df60d83a255c08aeb
author: qwx <qwx@sciops.net>
date: Mon Dec 8 08:50:00 EST 2025

repoadd: don't bail if a directory exists

--- a/bin/repoadd
+++ b/bin/repoadd
@@ -27,5 +27,8 @@
 repo=$repo(2)
 dir=$root/$repodir/$user
 
-git/clone $url $dir/$repo
+if(! test -d $dir/$repo)
+	git/clone $url $dir/$repo
+if not
+	echo $dir/$repo already exists >[1=2]
 echo $url^'	'^$user/^$repo^'	'^$dir/$repo^'	'^$"*
--