Commits

lan Nomar committed 5dea3c1

net/ftpcp: stable

Comments (0)

Files changed (1)

 
   # some vars that should exist at start time
 	pwd = `` (/) { echo -n $PWD }
-	ld = IGNORE
+	
+echo mkdir ftpcp/
+echo cd ftpcp/
 	
 for (* in `` $nl { find $PWD -type d } ) {
   # Full directory
 		cd = $fd }
 		
 	
-if (!~ $ld IGNORE){
-  if ( ~ $#cd $#ld ) {	# stay in current directory
+# stay in current directory
+  if ( ~ $#cd $#ld ) {
 		echo cd ../
   } else {
 	if ( expr $#cd '<' $#ld > /dev/null ){
 		* = `{ expr $#ld '-' $#cd }
 		goback $*
-} } }
-	
+  } }
+  
   # code starts
 	echo mkdir "$fd($#fd)^"
 	echo cd "$fd($#fd)^" 
 	
 	ld = $cd
 }
+