mirror of
				https://github.com/fspc/gbootroot.git
				synced 2025-11-04 08:15:36 -05:00 
			
		
		
		
	A better way to count ARGs.
This commit is contained in:
		
							parent
							
								
									a2d55f8d34
								
							
						
					
					
						commit
						b7ac1aa14d
					
				@ -15,7 +15,7 @@ my $preserve_permissions = "$ARGV[4]";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
my $end = 6;
 | 
					my $end = 6;
 | 
				
			||||||
my $filesystem;
 | 
					my $filesystem;
 | 
				
			||||||
for ( 5 .. $end ) {
 | 
					for ( 5 .. $#ARGV ) {
 | 
				
			||||||
    if ( $_ == 5 ) {
 | 
					    if ( $_ == 5 ) {
 | 
				
			||||||
	$filesystem = "$ARGV[5]";
 | 
						$filesystem = "$ARGV[5]";
 | 
				
			||||||
	# What to do with the rieserfs command
 | 
						# What to do with the rieserfs command
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user