shithub: rc

Download patch

ref: 5408de5b0dfb1f2a5933b89979c9edaf20a31f62
parent: 6e64cd70596661acc488a570922228ef0004b36c
author: qwx <qwx@sciops.net>
date: Sun May 1 16:22:48 EDT 1988

syncbv91: only sync m folders for one device

--- a/syncbv91
+++ b/syncbv91
@@ -10,13 +10,15 @@
 }
 cd
 # sd card mtimes are full of lies
-for(i in m*){
-	if(! test -d /n/ssh/m)
-		ssh tcp!bv91!8022 ln -s storage/external-1/m m || exit
-	if(! test -d /n/ssh/m/$i)
-		clone -T $i /n/ssh/m/
-	if not
-		syncab -m $i /n/ssh/m/$i | tee -a /tmp/sync.$pid
+if(~ $1 ule){
+	for(i in m*){
+		if(! test -d /n/ssh/m)
+			ssh tcp!bv91!8022 ln -s storage/external-1/m m || exit
+		if(! test -d /n/ssh/m/$i)
+			clone -T $i /n/ssh/m/
+		if not
+			syncab -m $i /n/ssh/m/$i | tee -a /tmp/sync.$pid
+	}
 }
 syncab $home/lib/i /n/ssh/Pictures | tee -a /tmp/sync.$pid
 echo proceed?