ref: 6888b49d4ee35b2adb09679b784f56174b18af58
parent: 7ad316d4a7676b968f6928eb13d46ac23f14f1e8
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jul 25 14:10:23 EDT 2019
Don't clobber existing git dirs.
--- a/clone
+++ b/clone
@@ -18,7 +18,7 @@
}
if(test -e $local){
- echo $local already exists
+ echo $local already exists >[1=2]
exit exists
}
--- a/init
+++ b/init
@@ -33,6 +33,11 @@
if not
usage
+if(test -e $dir$sub){
+ echo $dir$sub already exists >[1=2]
+ exit exists
+}
+
mkdir -p $dir$sub
dircp /sys/lib/git/template $dir/$sub
if(! ~ $#upstream 0){